Permalink
Browse files

Change route syntax to be rails4 compatible.

Signed-off-by: chatgris <jboyer@af83.com>
  • Loading branch information...
1 parent 88c0cc6 commit eae12b32c77be9e54ebb4e39d7a79eb19c69e4e3 chatgris committed Apr 23, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/opro/rails/routes.rb
View
6 lib/opro/rails/routes.rb
@@ -7,9 +7,9 @@ def mount_opro_oauth(options = {})
controllers = options[:controllers] || {}
oauth_new_controller = controllers[:oauth_new] || 'opro/oauth/auth'
- match 'oauth/new' => "#{oauth_new_controller}#new", :as => 'oauth_new'
- match 'oauth/authorize' => 'opro/oauth/auth#create', :as => 'oauth_authorize'
- match 'oauth/token' => 'opro/oauth/token#create', :as => 'oauth_token'
+ get 'oauth/new' => "#{oauth_new_controller}#new", :as => 'oauth_new'
+ post 'oauth/authorize' => 'opro/oauth/auth#create', :as => 'oauth_authorize'
+ post 'oauth/token' => 'opro/oauth/token#create', :as => 'oauth_token'
unless skip_routes.include?(:client_apps)
oauth_client_apps = controllers[:oauth_client_apps] ||'opro/oauth/client_app'

0 comments on commit eae12b3

Please sign in to comment.