Module: Relationships::ClassMethods
- Defined in:
- lib/active_mocker/active_record/relationships.rb
Instance Attribute Summary collapse
-
#belongs_to ⇒ Object
readonly
Returns the value of attribute belongs_to.
-
#has_and_belongs_to_many ⇒ Object
readonly
Returns the value of attribute has_and_belongs_to_many.
-
#has_many ⇒ Object
readonly
Returns the value of attribute has_many.
-
#has_one ⇒ Object
readonly
Returns the value of attribute has_one.
Instance Attribute Details
#belongs_to ⇒ Object (readonly)
Returns the value of attribute belongs_to.
10 11 12 |
# File 'lib/active_mocker/active_record/relationships.rb', line 10 def belongs_to @belongs_to end |
#has_and_belongs_to_many ⇒ Object (readonly)
Returns the value of attribute has_and_belongs_to_many.
10 11 12 |
# File 'lib/active_mocker/active_record/relationships.rb', line 10 def has_and_belongs_to_many @has_and_belongs_to_many end |
#has_many ⇒ Object (readonly)
Returns the value of attribute has_many.
10 11 12 |
# File 'lib/active_mocker/active_record/relationships.rb', line 10 def has_many @has_many end |
#has_one ⇒ Object (readonly)
Returns the value of attribute has_one.
10 11 12 |
# File 'lib/active_mocker/active_record/relationships.rb', line 10 def has_one @has_one end |