module Hobo::Controller::UserBase::ClassMethods

Public Instance Methods

available_auto_actions_with_user_actions() click to toggle source
# 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() click to toggle source
# 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
do_reset_password() click to toggle source
# File lib/hobo/controller/user_base.rb, line 43
def do_reset_password; hobo_do_reset_password; end
do_signup() click to toggle source
# File lib/hobo/controller/user_base.rb, line 41
def do_signup; hobo_do_signup                  end
forgot_password() click to toggle source
# File lib/hobo/controller/user_base.rb, line 42
def forgot_password; hobo_forgot_password;     end
login() click to toggle source
# File lib/hobo/controller/user_base.rb, line 38
def login; hobo_login;                         end
logout() click to toggle source
# File lib/hobo/controller/user_base.rb, line 39
def logout; hobo_logout;                       end
signup() click to toggle source
# File lib/hobo/controller/user_base.rb, line 40
def signup; hobo_signup;                       end