Sha256: d3acff7cc8f2da0863543fd1e325641cd63af98de0d81877b4eeda3299d005ee

Contents?: true

Size: 318 Bytes

Versions: 3

Compression:

Stored size: 318 Bytes

Contents

class ApplicationController < ActionController::Base
  include Userstamper::ControllerConcern

  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception

  protected

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
userstamper-4.1.0 spec/dummy/app/controllers/application_controller.rb
userstamper-4.0.1 spec/dummy/app/controllers/application_controller.rb
userstamper-4.0.0 spec/dummy/app/controllers/application_controller.rb