Sha256: 27d334ba3c3211e7409e09de21fd700715f2aba790f84a0ad13a6d342cbd0c8a
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 KB
Contents
module ActionDispatch::Routing class Mapper protected def devise_authy(mapping, controllers) match "/#{mapping.path_names[:verify_authy]}", :controller => controllers[:devise_authy], :action => :GET_verify_authy, :as => :verify_authy, :via => :get match "/#{mapping.path_names[:verify_authy]}", :controller => controllers[:devise_authy], :action => :POST_verify_authy, :as => :verify_authy, :via => :post match "/#{mapping.path_names[:enable_authy]}", :controller => controllers[:devise_authy], :action => :GET_enable_authy, :as => :enable_authy, :via => :get match "/#{mapping.path_names[:enable_authy]}", :controller => controllers[:devise_authy], :action => :POST_enable_authy, :as => :enable_authy, :via => :post match "/#{mapping.path_names[:verify_authy_installation]}", :controller => controllers[:devise_authy], :action => :GET_verify_authy_installation, :as => :verify_authy_installation, :via => :get match "/#{mapping.path_names[:verify_authy_installation]}", :controller => controllers[:devise_authy], :action => :POST_verify_authy_installation, :as => :verify_authy_installation, :via => :post match "/request-sms", :controller => controllers[:devise_authy], :action => :request_sms, :as => :request_sms, :via => :post end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise-authy-1.2.1 | lib/devise-authy/routes.rb |
devise-authy-1.0.0 | lib/devise-authy/routes.rb |