Method: Volt::Associations::ClassMethods#has_many

Defined in:
lib/volt/models/associations.rb

#has_many(method_name, remote_key_name = nil) ⇒ Object



21
22
23
24
25
# File 'lib/volt/models/associations.rb', line 21

def has_many(method_name, remote_key_name = nil)
  define_method(method_name) do
    get(method_name.pluralize, true)
  end
end