Module: ActsAsWildSearchable::ClassMethods
- Defined in:
- lib/acts_as_wild_searchable.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args) ⇒ Object
31
32
33
34
35
36
37
38
|
# File 'lib/acts_as_wild_searchable.rb', line 31
def method_missing(method_name, *args)
if match = method_name.to_s.match(/^([a-zA-Z]\w*)_like\?$/)
apply_filter(match.captures.first, args)
else
super
end
end
|
Instance Method Details
#acts_as_wild_searchable(options = {}) ⇒ Object
27
28
29
|
# File 'lib/acts_as_wild_searchable.rb', line 27
def acts_as_wild_searchable(options={})
end
|