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

Version Path
devise_challenge_questionable-3.3.2 lib/devise_challenge_questionable/rails.rb
devise_challenge_questionable-3.3.1 lib/devise_challenge_questionable/rails.rb
devise_challenge_questionable-3.2.0 lib/devise_challenge_questionable/rails.rb
devise_challenge_questionable-3.1.0 lib/devise_challenge_questionable/rails.rb
devise_challenge_questionable-3.0.0 lib/devise_challenge_questionable/rails.rb
devise_challenge_questionable-2.0.0 lib/devise_challenge_questionable/rails.rb
devise_challenge_questionable-0.2.5 lib/devise_challenge_questionable/rails.rb
devise_challenge_questionable-0.2.4 lib/devise_challenge_questionable/rails.rb
devise_challenge_questionable-0.2.3 lib/devise_challenge_questionable/rails.rb
devise_challenge_questionable-0.2.2 lib/devise_challenge_questionable/rails.rb
devise_challenge_questionable-0.1.2 lib/devise_challenge_questionable/rails.rb
devise_challenge_questionable-0.1.1 lib/devise_challenge_questionable/rails.rb