Sha256: 77acbaaf0c595238fa61a23482c42238b39da865369a4af4f7ce1cba696b5ae7

Contents?: true

Size: 427 Bytes

Versions: 8

Compression:

Stored size: 427 Bytes

Contents

module DeviseOtpAuthenticatable

  module Mapping

    def self.included(base)
      base.alias_method_chain :default_controllers, :otp
    end

    private
    def default_controllers_with_otp(options)
      options[:controllers] ||= {}

      options[:controllers][:otp_tokens]      ||= "tokens"
      options[:controllers][:otp_credentials] ||= "credentials"

      default_controllers_without_otp(options)
    end
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
devise-otp2-0.2.6 lib/devise_otp_authenticatable/mapping.rb
devise-otp2-0.2.5 lib/devise_otp_authenticatable/mapping.rb
devise-otp2-0.2.4 lib/devise_otp_authenticatable/mapping.rb
devise-otp-rails5-0.2.4 lib/devise_otp_authenticatable/mapping.rb
devise-otp-0.2.3 lib/devise_otp_authenticatable/mapping.rb
devise-otp-0.2.2 lib/devise_otp_authenticatable/mapping.rb
devise-otp-0.2.0 lib/devise_otp_authenticatable/mapping.rb
devise-otp-0.1.1 lib/devise_otp_authenticatable/mapping.rb