Module: Ronin::Model::HasTitle::ClassMethods
- Defined in:
- lib/ronin/model/has_title.rb
Overview
Class methods that are added when Ronin::Model::HasTitle are included into a model.
Instance Method Summary collapse
-
#titled(fragment) ⇒ Array<Model>
Finds models with titles containing a given fragment of text.
Instance Method Details
#titled(fragment) ⇒ Array<Model>
Finds models with titles containing a given fragment of text.
65 66 67 |
# File 'lib/ronin/model/has_title.rb', line 65 def titled(fragment) all(:title.like => "%#{fragment}%") end |