Sha256: a344b0c73f700419d8fa14b2a4df2a2c5fda8dfe77d0ac3e32f669889c5e3736
Contents?: true
Size: 585 Bytes
Versions: 24
Compression:
Stored size: 585 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 |app| ActionController::Base.send(:include, Sorcery::Controller) ActionController::Base.helper_method :current_user ActionController::Base.helper_method :logged_in? end rake_tasks do load "sorcery/railties/tasks.rake" end end end
Version data entries
24 entries across 24 versions & 3 rubygems