Skip to content
This repository
Browse code

rename require_authenticated -> require_authentication

  • Loading branch information...
commit 242e81a82533622158c3e223129902e0337549ee 1 parent d4d6fae
authored March 12, 2009
2  oauth_consumer/app/controllers/application.rb
... ...
@@ -1,7 +1,7 @@
1 1
 class ApplicationController < ActionController::Base
2 2
   include ApplicationHelper
3 3
 
4  
-  def require_authenticated
  4
+  def require_authentication
5 5
     unless authenticated?
6 6
       redirect_to root_url
7 7
     end
2  oauth_consumer/app/controllers/dashboard_controller.rb
... ...
@@ -1,5 +1,5 @@
1 1
 class DashboardController < ApplicationController
2  
-  before_filter :require_authenticated
  2
+  before_filter :require_authentication
3 3
 
4 4
   def index
5 5
   end
2  oauth_consumer/app/controllers/oauth_access_tokens_controller.rb
... ...
@@ -1,5 +1,5 @@
1 1
 class OauthAccessTokensController < ApplicationController
2  
-  before_filter :require_authenticated
  2
+  before_filter :require_authentication
3 3
   before_filter :require_oauth_consumer
4 4
 
5 5
   def new
2  oauth_consumer/app/controllers/oauth_consumers_controller.rb
... ...
@@ -1,5 +1,5 @@
1 1
 class OauthConsumersController < ApplicationController
2  
-  before_filter :require_authenticated
  2
+  before_filter :require_authentication
3 3
 
4 4
   def new
5 5
     @consumer = OauthConsumer.new
7  oauth_consumer/config/service_providers.yml
@@ -11,3 +11,10 @@ smartfm:
11 11
   request_token_url: http://api.smart.fm/oauth/request_token
12 12
   authorize_url: http://smart.fm/oauth/authorize
13 13
   access_token_url: http://api.smart.fm/oauth/access_token
  14
+
  15
+smartfm_dev:
  16
+  name: smart.fm API dev
  17
+  site: http://api.dev.iknow.co.jp
  18
+  request_token_url: http://api.dev.iknow.co.jp/oauth/request_token
  19
+  authorize_url: http://dev.smart.fm/oauth/authorize
  20
+  access_token_url: http://api.dev.iknow.co.jp/oauth/access_token

0 notes on commit 242e81a

Please sign in to comment.
Something went wrong with that request. Please try again.