Sha256: 9dee97ba49537a96cc0e1ff51885632ef5a452e7206fef86b467416d39c06885
Contents?: true
Size: 994 Bytes
Versions: 12
Compression:
Stored size: 994 Bytes
Contents
module DeviseChallengeQuestionable class Engine < ::Rails::Engine ActiveSupport.on_load(:action_controller) { include DeviseChallengeQuestionable::Controllers::Helpers } ActiveSupport.on_load(:action_controller) { include DeviseChallengeQuestionable::Controllers::UrlHelpers } ActiveSupport.on_load(:action_view) { include DeviseChallengeQuestionable::Controllers::UrlHelpers } # We use to_prepare instead of after_initialize here because Devise is a Rails engine; its # mailer is reloaded like the rest of the user's app. Got to make sure that our mailer methods # are included each time Devise::Mailer is (re)loaded. config.to_prepare do require 'devise/mailer' Devise::Mailer.send :include, DeviseChallengeQuestionable::Mailer end initializer "devise.add_filters" do |app| app.config.filter_parameters += [:challenge_answer, :reset_challenge_questions_token] app.config.filter_parameters.uniq end end end
Version data entries
12 entries across 12 versions & 1 rubygems