1 module AuthenticatedSystem
4 def find_authenticated_model_with_id(id)
8 def find_authenticated_model_with_remember_token(rt)
9 User.first(:remember_token => rt)
12 def find_activated_authenticated_model_with_login(login)
13 if User.instance_methods.include?("activated_at")
14 User.first(:login => login, :activated_at.not => nil)
16 User.first(:login => login)
20 def find_activated_authenticated_model(activation_code)
21 User.first(:activation_code => activation_code)
24 def find_with_conditions(conditions)
25 User.first(conditions)
28 # A method to assist with specs
29 def clear_database_table