Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Defined in:
- lib/active_search/search_helper.rb
Instance Method Summary collapse
- #find_by_value(value, association) ⇒ Object (also: #search_for)
Instance Method Details
#find_by_value(value, association) ⇒ Object Also known as: search_for
5 6 7 |
# File 'lib/active_search/search_helper.rb', line 5 def find_by_value(value, association) self.send(association.to_sym).find_by_value(value) end |