class ApplicationController

Public Instance Methods

after_sign_in_error_path_for(resource) click to toggle source
# File app/controllers/application_controller.rb, line 32
def after_sign_in_error_path_for(resource)
  session[:previous_url] || root_path
end
after_sign_in_path_for(resource) click to toggle source
# File app/controllers/application_controller.rb, line 24
def after_sign_in_path_for(resource)
  session[:previous_url] || root_path
end
after_sign_up_error_path_for(resource) click to toggle source
# File app/controllers/application_controller.rb, line 36
def after_sign_up_error_path_for(resource)
  session[:previous_url] || root_path
end
after_sign_up_path_for(resource) click to toggle source
# File app/controllers/application_controller.rb, line 28
def after_sign_up_path_for(resource)
  session[:previous_url] || root_path
end
authenticate_admin!() click to toggle source
# File app/controllers/application_controller.rb, line 40
def authenticate_admin!
        redirect_to root_path unless user_signed_in? && current_user.is_admin?
end
get_plan_list_columns() click to toggle source
# File app/controllers/application_controller.rb, line 44
def get_plan_list_columns
        if user_signed_in?
                @selected_columns = current_user.settings(:plan_list).columns
                @all_columns = Settings::PlanList::ALL_COLUMNS
        end
end
store_location() click to toggle source
# File app/controllers/application_controller.rb, line 13
def store_location
 # store last url - this is needed for post-login redirect to whatever the user last visited.

        if (request.fullpath != "/users/sign_in" && \
                request.fullpath != "/users/sign_up" && \
                request.fullpath != "/users/password" && \
    request.fullpath != "/users/sign_up?nosplash=true" && \
                !request.xhr?) # don't store ajax calls

          session[:previous_url] = request.fullpath 
        end
end