lib/simple_auth.rb in simple_auth-0.1.5 vs lib/simple_auth.rb in simple_auth-0.1.6
- old
+ new
@@ -1,10 +1,11 @@
require "digest/sha2"
require "simple_auth/config"
require "simple_auth/action_controller"
require "simple_auth/active_record"
require "simple_auth/session"
+require "simple_auth/helper"
require "simple_auth/version"
module SimpleAuth
class NotAuthorized < Exception; end
end
@@ -13,7 +14,8 @@
::ActiveRecord::Base.send :extend, SimpleAuth::ActiveRecord::ClassMethods
::ActionController::Base.send :include, SimpleAuth::ActionController::Implementation
::ActionController::Base.send :include, SimpleAuth::ActionController::InstanceMethods
::ActionController::Base.send :extend, SimpleAuth::ActionController::ClassMethods
+::ApplicationController.helper SimpleAuth::Helper if defined?(::ApplicationController)
I18n.load_path += Dir[File.dirname(__FILE__) + "/../config/locales/*.yml"]