Sha256: b483ccd95649fc40341b9c722af2cc33670deee614a9ef690c1c7aa5dfb1e8ce

Contents?: true

Size: 560 Bytes

Versions: 10

Compression:

Stored size: 560 Bytes

Contents

module ActionDispatch::Routing
  class Mapper
    protected

    def devise_two_factor_authentication(mapping, controllers)
      resource :two_factor_authentication, only: [:show, :update, :resend_code], path: mapping.path_names[:two_factor_authentication], controller: controllers[:two_factor_authentication] do
        collection { get 'resend_code' }
      end
    end

    def devise_totp(mapping, controllers)
      resource :totp, only: [:new, :create, :show, :destroy], path: mapping.path_names[:totp], controller: controllers[:totp]
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
devise-multi-factor-3.2.5 lib/devise_multi_factor/routes.rb
devise-multi-factor-3.2.4 lib/devise_multi_factor/routes.rb
devise-multi-factor-3.2.3 lib/devise_multi_factor/routes.rb
devise-multi-factor-3.2.2 lib/devise_multi_factor/routes.rb
devise-multi-factor-3.2.1 lib/devise_multi_factor/routes.rb
devise-multi-factor-3.2.0 lib/devise_multi_factor/routes.rb
devise-multi-factor-3.1.8 lib/devise_multi_factor/routes.rb
devise-multi-factor-3.1.7 lib/devise_multi_factor/routes.rb
devise-multi-factor-3.1.6 lib/devise_multi_factor/routes.rb
devise-multi-factor-3.1.5 lib/devise_multi_factor/routes.rb