lib/rails_warden.rb in rails_warden-0.5.0 vs lib/rails_warden.rb in rails_warden-0.5.1
- old
+ new
@@ -1,9 +1,10 @@
# encoding: utf-8
require 'warden'
require 'active_support'
+
$:.unshift File.expand_path(File.dirname(__FILE__))
require "rails_warden/manager"
require "rails_warden/rails_settings"
require "rails_warden/controller_mixin"
@@ -77,27 +78,27 @@
end
if !defined?(Rails::Railtie)
Rails.configuration.after_initialize do
- class ActionController::Base
+ class ::ActionController::Base
include RailsWarden::Mixins::HelperMethods
include RailsWarden::Mixins::ControllerOnlyMethods
end
- module ApplicationHelper
+ module ::ApplicationHelper
include RailsWarden::Mixins::HelperMethods
end
end
else
class RailsWarden::Railtie < Rails::Railtie
initializer :warden do
- ActionController::Base.class_eval do
+ ::ActionController::Base.class_eval do
include RailsWarden::Mixins::HelperMethods
include RailsWarden::Mixins::ControllerOnlyMethods
end
- module ApplicationHelper
+ module ::ApplicationHelper
include RailsWarden::Mixins::HelperMethods
end
end
end
end