Fix coding standards in application files
This commit is contained in:
@@ -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!
|
||||
|
Reference in New Issue
Block a user