Sha256: e59d645a66d43b88b448ab6735c883d7de0b7db957a6df40b7f0521d3ef1d585

Contents?: true

Size: 1.63 KB

Versions: 8

Compression:

Stored size: 1.63 KB

Contents

module ActionDispatch::Routing
  class Mapper
    protected

    def devise_twilio_verify(mapping, controllers)
      match "/#{mapping.path_names[:verify_twilio_verify]}", :controller => controllers[:devise_twilio_verify], :action => :GET_verify_twilio_verify, :as => :verify_twilio_verify, :via => :get
      match "/#{mapping.path_names[:verify_twilio_verify]}", :controller => controllers[:devise_twilio_verify], :action => :POST_verify_twilio_verify, :as => nil, :via => :post

      match "/#{mapping.path_names[:enable_twilio_verify]}", :controller => controllers[:devise_twilio_verify], :action => :GET_enable_twilio_verify, :as => :enable_twilio_verify, :via => :get
      match "/#{mapping.path_names[:enable_twilio_verify]}", :controller => controllers[:devise_twilio_verify], :action => :POST_enable_twilio_verify, :as => nil, :via => :post

      match "/#{mapping.path_names[:disable_twilio_verify]}", :controller => controllers[:devise_twilio_verify], :action => :POST_disable_twilio_verify, :as => :disable_twilio_verify, :via => :post

      match "/#{mapping.path_names[:verify_twilio_verify_installation]}", :controller => controllers[:devise_twilio_verify], :action => :GET_verify_twilio_verify_installation, :as => :verify_twilio_verify_installation, :via => :get
      match "/#{mapping.path_names[:verify_twilio_verify_installation]}", :controller => controllers[:devise_twilio_verify], :action => :POST_verify_twilio_verify_installation, :as => nil, :via => :post

      match "/#{mapping.path_names[:request_sms]}", :controller => controllers[:devise_twilio_verify], :action => :request_sms, :as => :request_sms, :via => :post
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
devise-twilio-verify-0.2.5 lib/devise-twilio-verify/routes.rb
devise-twilio-verify-0.2.4 lib/devise-twilio-verify/routes.rb
devise-twilio-verify-0.2.3 lib/devise-twilio-verify/routes.rb
devise-twilio-verify-0.2.2 lib/devise-twilio-verify/routes.rb
devise-twilio-verify-0.2.1 lib/devise-twilio-verify/routes.rb
devise-twilio-verify-0.2.0 lib/devise-twilio-verify/routes.rb
devise-twilio-verify-0.1.1 lib/devise-twilio-verify/routes.rb
devise-twilio-verify-0.1.0 lib/devise-twilio-verify/routes.rb