module FrederickAPI::V2::Helpers::HasMany::ClassMethods

Class methods added to resource

Public Instance Methods

has_many(attr_name, options = {}) click to toggle source
# File lib/frederick_api/v2/helpers/has_many.rb, line 13
def has_many(attr_name, options = {})
  self.associations = self.associations + [HasMany::Association.new(attr_name, self, options)]
end