Sha256: 223628a18e572619357f822d9dc3f741f466cdc5401d11396fc6dedf0d96afab

Contents?: true

Size: 259 Bytes

Versions: 1

Compression:

Stored size: 259 Bytes

Contents

class ApplicationController < ActionController::Base
    protect_from_forgery with: :exception

    private

    def current_user
        @current_user ||= User.find(session[:user_id]) if session.has_key?(:user_id)
    end
    helper_method :current_user
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omniauth-slooob-1.0.0 examples/rails_example/app/controllers/application_controller.rb