Module: Findable::Association
- Included in:
- Base
- Defined in:
- lib/findable/association.rb
Instance Method Summary collapse
- #belongs_to(name, scope = nil, options = {}) ⇒ Object
- #has_many(name, scope = nil, options = {}) ⇒ Object
- #has_one(name, scope = nil, options = {}) ⇒ Object
Instance Method Details
#belongs_to(name, scope = nil, options = {}) ⇒ Object
11 12 13 |
# File 'lib/findable/association.rb', line 11 def belongs_to(name, scope = nil, = {}) super unless _define_association_methods(:belongs_to, name, ) end |
#has_many(name, scope = nil, options = {}) ⇒ Object
3 4 5 |
# File 'lib/findable/association.rb', line 3 def has_many(name, scope = nil, = {}) super unless _define_association_methods(:has_many, name, ) end |
#has_one(name, scope = nil, options = {}) ⇒ Object
7 8 9 |
# File 'lib/findable/association.rb', line 7 def has_one(name, scope = nil, = {}) super unless _define_association_methods(:has_one, name, ) end |