diff --git a/lib/clearance.rb b/lib/clearance.rb index 1b92beeb..197b4d37 100644 --- a/lib/clearance.rb +++ b/lib/clearance.rb @@ -5,9 +5,9 @@ require 'clearance/back_door' require 'clearance/controller' require 'clearance/user' -require 'clearance/engine' require 'clearance/password_strategies' require 'clearance/constraints' +require 'clearance/engine' module Clearance end diff --git a/lib/clearance/configuration.rb b/lib/clearance/configuration.rb index b5f21eeb..8a2c7028 100644 --- a/lib/clearance/configuration.rb +++ b/lib/clearance/configuration.rb @@ -135,7 +135,7 @@ class Configuration # The parameter for user routes. By default this is derived from the user # model. # @return [Symbol] - attr_accessor :user_parameter + attr_writer :user_parameter # Controls wether users are automatically signed in after successfully # resetting their password. diff --git a/lib/clearance/engine.rb b/lib/clearance/engine.rb index 2ee8687b..bc1ba314 100644 --- a/lib/clearance/engine.rb +++ b/lib/clearance/engine.rb @@ -1,4 +1,3 @@ -require "clearance" require "rails/engine" module Clearance