Sha256: d99cbb118c98ff6eb31e1716980577ef127464fd72e0d47a56695e6bc44d95b2

Contents?: true

Size: 428 Bytes

Versions: 14

Compression:

Stored size: 428 Bytes

Contents

module DeviseAuthy
  class Engine < ::Rails::Engine
    ActiveSupport.on_load(:action_controller) do
      include DeviseAuthy::Controllers::Helpers
    end
    ActiveSupport.on_load(:action_view) do
      include DeviseAuthy::Views::Helpers
    end

    # extend mapping with after_initialize because it's not reloaded
    config.after_initialize do
      Devise::Mapping.send :prepend, DeviseAuthy::Mapping
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
devise-authy-2.3.1 lib/devise-authy/rails.rb
devise-authy-2.3.0 lib/devise-authy/rails.rb
devise-authy-2.2.1 lib/devise-authy/rails.rb
devise-authy-2.2.0 lib/devise-authy/rails.rb
devise-authy-2.1.0 lib/devise-authy/rails.rb
devise-authy-2.0.0 lib/devise-authy/rails.rb
devise-authy-1.11.1 lib/devise-authy/rails.rb
devise-authy-1.11.0 lib/devise-authy/rails.rb
devise-authy-1.10.0 lib/devise-authy/rails.rb
devise-authy-1.9.0 lib/devise-authy/rails.rb
devise-authy-1.8.3 lib/devise-authy/rails.rb
devise-authy-1.8.2 lib/devise-authy/rails.rb
devise-authy-1.8.1 lib/devise-authy/rails.rb
devise-authy-1.8.0 lib/devise-authy/rails.rb