lib/generators/jt/user/templates/controllers/concerns/current_user.rb in jt-rails-generator-user-1.0.5 vs lib/generators/jt/user/templates/controllers/concerns/current_user.rb in jt-rails-generator-user-1.0.6

- old
+ new

@@ -5,9 +5,10 @@ helper_method :current_user end def set_current_user(user) session[:user_id] = user.id + user.increment_login_stats!(request.remote_ip) end def current_user @current_user ||= User.find_by_id(session[:user_id]) if session[:user_id] @current_user \ No newline at end of file