Module: SearchingName
- Defined in:
- lib/SearchingName.rb
Class Method Summary collapse
Class Method Details
.search(search) ⇒ Object
3 4 5 |
# File 'lib/SearchingName.rb', line 3 def self.search(search) search.present? and all(:conditions => [ 'name LIKE ?', "%#{search.strip}%" ]) end |