module JSONAPI::Consumer::Associations::HasMany::ClassMethods
Public Instance Methods
has_many(attr_name, options = {})
click to toggle source
# File lib/jsonapi/consumer/associations/has_many.rb, line 7 def has_many(attr_name, options = {}) self.associations = self.associations + [HasMany::Association.new(attr_name, self, options)] end