Sha256: f89153e69eb2529829d4c61206cad6ba0e906090dc5e66864be2da9ca643e24c
Contents?: true
Size: 623 Bytes
Versions: 2
Compression:
Stored size: 623 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.instance_eval do include SimpleAuth::ActiveRecord end ::I18n.load_path += Dir[File.dirname(__FILE__) + "/../../config/locales/*.yml"] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_auth-1.1.0 | lib/simple_auth/railtie.rb |
simple_auth-1.0.2 | lib/simple_auth/railtie.rb |