Upgrade to rails 3.2.14.
This commit is contained in:
parent
41c38e1bc2
commit
449158b943
2 changed files with 2 additions and 2 deletions
2
Gemfile
2
Gemfile
|
@ -1,6 +1,6 @@
|
|||
source 'http://rubygems.org'
|
||||
|
||||
gem 'rails', '3.2.13'
|
||||
gem 'rails', '3.2.14'
|
||||
|
||||
# preparation for rails 4
|
||||
#gem 'rails', '4.0.0.rc1'
|
||||
|
|
|
@ -61,7 +61,7 @@ class ApplicationController < ActionController::Base
|
|||
def current_user
|
||||
return @_current_user if @_current_user
|
||||
return if !session[:user_id]
|
||||
@_current_user = User.find_by_id( session[:user_id] )
|
||||
@_current_user = User.find( session[:user_id] )
|
||||
end
|
||||
def current_user_set(user)
|
||||
@_current_user = user
|
||||
|
|
Loading…
Reference in a new issue