Module: Findable::Association

Included in:
Base
Defined in:
lib/findable/association.rb

Instance Method Summary collapse

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, options = {})
  super unless _define_association_methods(:belongs_to, name, options)
end

#has_many(name, scope = nil, options = {}) ⇒ Object



3
4
5
# File 'lib/findable/association.rb', line 3

def has_many(name, scope = nil, options = {})
  super unless _define_association_methods(:has_many, name, options)
end

#has_one(name, scope = nil, options = {}) ⇒ Object



7
8
9
# File 'lib/findable/association.rb', line 7

def has_one(name, scope = nil, options = {})
  super unless _define_association_methods(:has_one, name, options)
end