Module: ActiveResource::Reflection::ClassMethods

Defined in:
lib/active_resource/reflection.rb

Instance Method Summary collapse

Instance Method Details

#create_reflection(macro, name, options) ⇒ Object



19
20
21
22
23
# File 'lib/active_resource/reflection.rb', line 19

def create_reflection(macro, name, options)
  reflection = AssociationReflection.new(macro, name, options)
  self.reflections = self.reflections.merge(name => reflection)
  reflection
end