Sha256: 6fb602999cce420af545bb5fd258f9c23c7ced3ad9dd82c3a35349141051c809
Contents?: true
Size: 549 Bytes
Versions: 12
Compression:
Stored size: 549 Bytes
Contents
module SimpleAuth class Railtie < Rails::Railtie generators do require "simple_auth/generator" end initializer "simple_auth.initialize" do |app| ::ActionController::Base.instance_eval do include SimpleAuth::ActionController helper SimpleAuth::Helper prepend_before_filter :activate_simple_auth helper_method :current_user, :current_session, :logged_in? end ::ActiveRecord::Base.class_eval { include SimpleAuth::Orm::ActiveRecord } if defined?(::ActiveRecord) end end end
Version data entries
12 entries across 12 versions & 1 rubygems