Devise v4.2.0 Release Notes

Release Date: 2016-07-01 // almost 8 years ago
    • removals
      • Remove the deprecated Devise::ParameterSanitizer API from Devise 3. Please use the #permit and #sanitize methods over #for.
      • Remove the deprecated OmniAuth URL helpers. Use the fully qualified helpers (user_facebook_omniauth_authorize_path) over the scope based helpers ( user_omniauth_authorize_path(:facebook)).
      • Remove the Devise.bcrypt method, use Devise::Encryptor.digest instead.
      • Remove the Devise::Models::Confirmable#confirm! method, use confirm instead.
      • Remove the Devise::Models::Recoverable#reset_password! method, use reset_password instead.
      • Remove the Devise::Models::Recoverable#after_password_reset method.
    • ๐Ÿ› bug fixes
      • Fix an ActionDispatch::IllegalStateError when testing controllers with Rails 5 rc 2(by @hamadata).
      • Use ActiveSupport.on_load hooks to include Devise on ActiveRecord and Mongoid, avoiding autoloading these constants too soon (by @lucasmazza, @rafaelfranca).
    • โœจ enhancements
      • Display the minimum password length on registrations/edit view (by @Yanchek99).
      • You can disable Devise's routes reloading on boot by through the reload_routes = false config. This can reduce the time taken to boot the application but it might trigger some errors if you application (mostly your controllers) requires that Devise mappings be loaded during boot time (by @sidonath).
      • Added Devise::Test::IntegrationHelpers to bypass the sign in process using Warden test API (by @lucasmazza).
      • Define inspect in Devise::Models::Authenticatable to help ensure password hashes aren't included in exceptions or otherwise accidentally serialized (by @tkrajcar).
      • Add missing support of Rails.application.config.action_controller.relative_url_root (by @kosdiamantis).
    • ๐Ÿ—„ deprecations
      • Devise::TestHelpers is deprecated in favor of Devise::Test::ControllerHelpers (by @lucasmazza).
      • The sign_in test helper has changed to use keyword arguments when passing a scope. sign_in :admin, users(:alice) should be rewritten as sign_in users(:alice), scope: :admin (by @lucasmazza).
      • The option bypass of Devise::Controllers::SignInOut#sign_in method is deprecated in favor of Devise::Controllers::SignInOut#bypass_sign_in method (by @ulissesalmeida).