Module: CornStarch::Unisearchable::ClassMethods
- Defined in:
- lib/corn_starch/unisearchable.rb
Overview
Class Methods
Instance Method Summary collapse
-
#searchable_associations(assocs = nil) ⇒ Object
Get/Set Searchable Associations.
-
#searchable_attributes(attrs = nil) ⇒ Object
Get/Set Searchable Attributes.
Instance Method Details
#searchable_associations(assocs = nil) ⇒ Object
Get/Set Searchable Associations
26 27 28 |
# File 'lib/corn_starch/unisearchable.rb', line 26 def searchable_associations assocs = nil @searchable_associations = (assocs || @searchable_associations) || {} end |
#searchable_attributes(attrs = nil) ⇒ Object
Get/Set Searchable Attributes
21 22 23 |
# File 'lib/corn_starch/unisearchable.rb', line 21 def searchable_attributes attrs = nil @searchable_attributes = (attrs || @searchable_attributes) || {} end |