lib/sorcery/test_helpers/internal/rails.rb in sorcery-0.8.4 vs lib/sorcery/test_helpers/internal/rails.rb in sorcery-0.8.5
- old
+ new
@@ -3,25 +3,25 @@
module Internal
module Rails
include ::Sorcery::TestHelpers::Rails
SUBMODUELS_AUTO_ADDED_CONTROLLER_FILTERS = [
- :register_last_activity_time_to_db,
- :deny_banned_user,
+ :register_last_activity_time_to_db,
+ :deny_banned_user,
:validate_session
]
def sorcery_reload!(submodules = [], options = {})
reload_user_class
-
+
# return to no-module configuration
::Sorcery::Controller::Config.init!
::Sorcery::Controller::Config.reset!
# remove all plugin before_filters so they won't fail other tests.
# I don't like this way, but I didn't find another.
# hopefully it won't break until Rails 4.
- ApplicationController._process_action_callbacks.delete_if {|c| SUBMODUELS_AUTO_ADDED_CONTROLLER_FILTERS.include?(c.filter) }
+ SorceryController._process_action_callbacks.delete_if {|c| SUBMODUELS_AUTO_ADDED_CONTROLLER_FILTERS.include?(c.filter) }
# configure
::Sorcery::Controller::Config.submodules = submodules
::Sorcery::Controller::Config.user_class = nil
ActionController::Base.send(:include,::Sorcery::Controller)