Module: ActiveResource::Reflection::ClassMethods
- Defined in:
- lib/active_resource/reflection.rb
Instance Method Summary collapse
Instance Method Details
#create_reflection(macro, name, options) ⇒ Object
21 22 23 24 25 |
# File 'lib/active_resource/reflection.rb', line 21 def create_reflection(macro, name, ) reflection = AssociationReflection.new(macro, name, ) self.reflections = self.reflections.merge(name => reflection) reflection end |