Class: Masterman::Reflection::HasManyReflection

Inherits:
Macro
  • Object
show all
Defined in:
lib/masterman/reflection/macro.rb

Instance Attribute Summary

Attributes inherited from Macro

#model_class, #name, #options, #scope

Instance Method Summary collapse

Methods inherited from Macro

#build_association, #foreign_key, #initialize, #klass, #through_reflection

Constructor Details

This class inherits a constructor from Masterman::Reflection::Macro

Instance Method Details

#collection?Boolean

Returns:

  • (Boolean)


75
76
77
# File 'lib/masterman/reflection/macro.rb', line 75

def collection?
  true
end

#macroObject



71
72
73
# File 'lib/masterman/reflection/macro.rb', line 71

def macro
  :has_many
end