Sha256: 17137fd4a0a3cfe47c6ded26d809b1bc48d635069982a73b1109b81e9ccfe65b
Contents?: true
Size: 851 Bytes
Versions: 2
Compression:
Stored size: 851 Bytes
Contents
module ActionDispatch::Routing class Mapper protected ######### def devise_otp(mapping, controllers) namespace :otp, :module => :devise_otp do resource :token, :only => [:show, :update, :destroy], :path => mapping.path_names[:token], :controller => controllers[:otp_tokens] do get :persistence, :action => 'get_persistence' post :persistence, :action => 'clear_persistence' delete :persistence, :action => 'delete_persistence' get :recovery end resource :credential, :only => [:show, :update], :path => mapping.path_names[:credentials], :controller => controllers[:otp_credentials] do get :refresh, :action => 'get_refresh' put :refresh, :action => 'set_refresh' end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise-otp-0.2.0 | lib/devise_otp_authenticatable/routes.rb |
devise-otp-0.1.1 | lib/devise_otp_authenticatable/routes.rb |