Module: Ronin::Model::HasDescription::ClassMethods
- Defined in:
- lib/ronin/model/has_description.rb
Overview
Class methods that are added when Ronin::Model::HasDescription is included into a model.
Instance Method Summary collapse
-
#describing(fragment) ⇒ Array<Model>
Finds models with descriptions containing a given fragment of text.
Instance Method Details
#describing(fragment) ⇒ Array<Model>
Finds models with descriptions containing a given fragment of text.
67 68 69 |
# File 'lib/ronin/model/has_description.rb', line 67 def describing(fragment) all(:description.like => "%#{fragment}%") end |