Module: Daddy::Models::QueryExtension::ClassMethods

Defined in:
lib/daddy/models/query_extension.rb

Instance Method Summary collapse

Instance Method Details

#like(columns, keywords) ⇒ Object



14
15
16
# File 'lib/daddy/models/query_extension.rb', line 14

def like(columns, keywords)
  where(Daddy::Utils::SqlUtils.like(columns, keywords))
end

#not_deletedObject



10
11
12
# File 'lib/daddy/models/query_extension.rb', line 10

def not_deleted
  where(:deleted => false)
end