lib/rodauth/rails/railtie.rb in rodauth-rails-1.8.0 vs lib/rodauth/rails/railtie.rb in rodauth-rails-1.9.0

- old
+ new

@@ -21,15 +21,11 @@ initializer "rodauth.test" do # Rodauth uses RACK_ENV to set the default bcrypt hash cost ENV["RACK_ENV"] = "test" if ::Rails.env.test? - if ActionPack.version >= Gem::Version.new("5.0") - ActiveSupport.on_load(:action_controller_test_case) do - include Rodauth::Rails::Test::Controller - end - else - ActionController::TestCase.include Rodauth::Rails::Test::Controller + ActiveSupport.on_load(:action_controller_test_case) do + include Rodauth::Rails::Test::Controller end end rake_tasks do load "rodauth/rails/tasks.rake"