Sha256: 2faab21fd17e64b20a2c40092ca8687cb79cb4b1ed5cf67c9f83554379f0054d
Contents?: true
Size: 499 Bytes
Versions: 6
Compression:
Stored size: 499 Bytes
Contents
require 'sorcery' require 'rails' module Sorcery # The Sorcery engine takes care of extending ActiveRecord (if used) and ActionController, # With the plugin logic. class Engine < Rails::Engine config.sorcery = ::Sorcery::Controller::Config initializer 'extend Controller with sorcery' do ActionController::Base.send(:include, Sorcery::Controller) ActionController::Base.helper_method :current_user ActionController::Base.helper_method :logged_in? end end end
Version data entries
6 entries across 6 versions & 1 rubygems