Sha256: 7e86ea2823c742ed8473cccba9f4da1603224c94f2dfb227f376a1995494b6a7

Contents?: true

Size: 229 Bytes

Versions: 10

Compression:

Stored size: 229 Bytes

Contents

class ApplicationController < ActionController::Base
  protect_from_forgery
  helper_method :current_user, :logged_in?

  def current_user
    User.find_by_id(session[:user_id])
  end

  def logged_in?
    current_user
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
chili-4.0.1 spec/example_app/app/controllers/application_controller.rb
chili-4.0.0 spec/example_app/app/controllers/application_controller.rb
chili-3.1.1 spec/example_app/app/controllers/application_controller.rb
chili-3.1.0 spec/example_app/app/controllers/application_controller.rb
chili-3.0.0 spec/example_app/app/controllers/application_controller.rb
chili-2.0.1 spec/example_app/app/controllers/application_controller.rb
chili-2.0.0 spec/example_app/app/controllers/application_controller.rb
chili-1.0.1 spec/dummy/example_app/app/controllers/application_controller.rb
chili-1.0.0 spec/dummy/example_app/app/controllers/application_controller.rb
chili-0.3.5 spec/dummy/example_app/app/controllers/application_controller.rb