Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Commit

Permalink
update files
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Sonnek committed Oct 13, 2011
1 parent bfc6021 commit 8cd41db
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 180 deletions.
24 changes: 4 additions & 20 deletions .gitignore
Expand Up @@ -28,23 +28,7 @@ test/*.sqlite3
# git files
*.orig

# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
#
# * Create a file at ~/.gitignore
# * Include files you want ignored
# * Run: git config --global core.excludesfile ~/.gitignore
#
# After doing this, these files will be ignored in all your git projects,
# saving you from having to 'pollute' every project you touch with them
#
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
#
# For TextMate
#*.tmproj
#tmtags
#
# For emacs:
#*~
#\#*
#.\#*

# rails files
tmp
log
*.log
9 changes: 3 additions & 6 deletions config/routes.rb
@@ -1,10 +1,7 @@
Devise::Oauth2Providable::Engine.routes.draw do
root :to => "authorizations#new"

resources :authorizations, :only => :create
match 'authorize' => 'authorizations#new'
resource :token, :only => :create

# scope '/oauth2', :as => 'oauth2' do
# resources :authorizations, :controller => 'oauth2/authorizations', :only => :create
# match 'authorize' => 'oauth2/authorizations#new'
# resource :token, :controller => 'oauth2/tokens', :only => :create
# end
end
3 changes: 1 addition & 2 deletions lib/devise/oauth2_providable/engine.rb
Expand Up @@ -6,7 +6,6 @@ class Engine < Rails::Engine
initializer "devise_oauth2_providable.initialize_application" do |app|
app.config.filter_parameters << :client_secret
end
end
end
end
end

3 changes: 3 additions & 0 deletions spec/dummy/config/routes.rb
@@ -1,3 +1,6 @@
Rails.application.routes.draw do
devise_for :users
resources :protected

mount Devise::Oauth2Providable::Engine => "/oauth2"
end
152 changes: 0 additions & 152 deletions spec/dummy/log/development.log

This file was deleted.

Empty file removed spec/dummy/log/test.log
Empty file.

0 comments on commit 8cd41db

Please sign in to comment.