Sha256: 7d2d73bf1ca9cd13eb2a0768cbc884f42ad2bcd3f6d39109ee3cd6a996438a3e
Contents?: true
Size: 208 Bytes
Versions: 2
Compression:
Stored size: 208 Bytes
Contents
class ApplicationController < ActionController::Base protect_from_forgery def current_user @current_user ||= User.find(session[:user_id]) if session[:user_id] end helper_method :current_user end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kblog-0.0.4 | test/dummy/app/controllers/application_controller.rb |
kblog-0.0.3 | test/dummy/app/controllers/application_controller.rb |