Sha256: de2d5ccf96ed8209c846747a97b4da8eb766056dca8c7949070e6072f4837d76
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 Bytes
Contents
module SimpleAuth class Railtie < Rails::Railtie generators do require "simple_auth/generator" end config.after_initialize do ActiveSupport.on_load(:action_controller) do include SimpleAuth::ActionController helper SimpleAuth::Helper prepend_before_filter :activate_simple_auth helper_method :current_user, :current_session, :logged_in? end ActiveSupport.on_load(:active_record) do include SimpleAuth::ActiveRecord end end initializer "simple_auth.initialize" do |app| ::I18n.load_path += Dir[File.dirname(__FILE__) + "/../../config/locales/*.yml"] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_auth-1.0.1 | lib/simple_auth/railtie.rb |