Fix coding standards in application files

This commit is contained in:
Thibault Jouan
2015-04-30 08:52:00 +00:00
parent 737ac1f10a
commit 3b733c349e
16 changed files with 34 additions and 26 deletions

View File

@@ -3,7 +3,7 @@ class ApplicationController < ActionController::Base
before_filter :authenticate!
def current_user=(user)
def current_user= user
session[:user_id] = user.id
end
@@ -11,6 +11,7 @@ class ApplicationController < ActionController::Base
@current_user ||= User.find(session[:user_id]) if session[:user_id]
end
protected
def authenticate!