Module: MerbAuth::Adapter::Sequel::Map::ClassMethods
- Defined in:
- lib/merb-auth/adapters/sequel/map.rb
Instance Method Summary collapse
- #clear_database_table ⇒ Object
- #find_active_with_conditions(conditions) ⇒ Object
- #find_all_with_login_like(logn) ⇒ Object
- #find_with_conditions(conditions) ⇒ Object
Instance Method Details
#clear_database_table ⇒ Object
28 29 30 |
# File 'lib/merb-auth/adapters/sequel/map.rb', line 28 def clear_database_table delete end |
#find_active_with_conditions(conditions) ⇒ Object
23 24 25 26 |
# File 'lib/merb-auth/adapters/sequel/map.rb', line 23 def find_active_with_conditions(conditions) #filter(conditions).exclude(:activated_at => nil, :special => true).first filter(conditions).exclude(:activated_at => nil).first end |
#find_all_with_login_like(logn) ⇒ Object
19 20 21 |
# File 'lib/merb-auth/adapters/sequel/map.rb', line 19 def find_all_with_login_like(logn) filter(:login.like(logn)).order(:login.desc).limit(1) end |
#find_with_conditions(conditions) ⇒ Object
15 16 17 |
# File 'lib/merb-auth/adapters/sequel/map.rb', line 15 def find_with_conditions(conditions) filter(conditions).first end |