Sha256: 572fdc50b90857d9e65a3c5d6aed17ce354d819cff6b393cddb72c134a3fe4fe

Contents?: true

Size: 410 Bytes

Versions: 4

Compression:

Stored size: 410 Bytes

Contents

module DeviseAuthy
  module Mapping
    def self.included(base)
      base.alias_method_chain :default_controllers, :authy_authenticatable
    end

    private
    def default_controllers_with_authy_authenticatable(options)
      options[:controllers] ||= {}
      options[:controllers][:passwords] ||= "devise_authy/passwords"
      default_controllers_without_authy_authenticatable(options)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise-authy-1.7.0 lib/devise-authy/mapping.rb
devise-authy-1.6.0 lib/devise-authy/mapping.rb
devise-authy-1.5.3 lib/devise-authy/mapping.rb
devise-authy-1.5.2 lib/devise-authy/mapping.rb