Skip to content

Commit

Permalink
Update path_prefix default to match the old default
Browse files Browse the repository at this point in the history
The old route was /users/auth/:provider and this has changed the default to /user/auth/:provider
I believe the default should not break existing apps that were relying on that route

Fixes #103
  • Loading branch information
swrobel authored and radar committed Aug 30, 2013
1 parent 29ee5a7 commit 7b39847
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ rails g spree_social:install
bundle exec rake db:migrate
```

Preference(optional): By default url will be '/user/auth/:provider'. If you wish to modify the url to: '/member/auth/:provider', '/profile/auth/:provider', or '/auth/:provider' then you can do this accordingly in your **config/initializers/spree.rb** file as described below -
Preference(optional): By default url will be '/users/auth/:provider'. If you wish to modify the url to: '/member/auth/:provider', '/profile/auth/:provider', or '/auth/:provider' then you can do this accordingly in your **config/initializers/spree.rb** file as described below -

```ruby
Spree::SocialConfig[:path_prefix] = 'member' # for /member/auth/:provider
Expand Down
4 changes: 2 additions & 2 deletions app/models/spree/social_configuration.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# More on Spree's preference configuration - http://guides.spreecommerce.com/preferences.html#site_wide_preferences
module Spree
class SocialConfiguration < Preferences::Configuration
preference :path_prefix, :string, :default => 'user'
preference :path_prefix, :string, :default => 'users'
end
end
end

0 comments on commit 7b39847

Please sign in to comment.