Module: Hobo::Controller::UserBase::ClassMethods
- Defined in:
- lib/hobo/controller/user_base.rb
Instance Method Summary collapse
Instance Method Details
#available_auto_actions_with_user_actions ⇒ Object
28 29 30 31 |
# File 'lib/hobo/controller/user_base.rb', line 28 def available_auto_actions_with_user_actions available_auto_actions_without_user_actions + [:login, :logout, :forgot_password, :reset_password, :account] end |
#def_auto_actions_with_user_actions ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/hobo/controller/user_base.rb', line 34 def def_auto_actions_with_user_actions def_auto_actions_without_user_actions class_eval do def login; hobo_login; end if include_action?(:login) def logout; hobo_logout; end if include_action?(:logout) def signup; hobo_signup; end if include_action?(:signup) def do_signup; hobo_do_signup end if include_action?(:do_signup) def forgot_password; hobo_forgot_password; end if include_action?(:forgot_password) def do_reset_password; hobo_do_reset_password; end if include_action?(:do_reset_password) show_action :account if include_action?(:account) end end |