This repository has been archived on 2024-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
redstoner.com/app/controllers/application_controller.rb
2013-06-24 13:29:39 +02:00

12 lines
252 B
Ruby

class ApplicationController < ActionController::Base
protect_from_forgery
# force_ssl
helper :all
include ToolsHelper
helper_method :current_user
private
def current_user
@current_user ||= User.find_by_id(session[:user_id])
end
end