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