From 839fe22611df2dffdf34c8df6480b4f90fa5f698 Mon Sep 17 00:00:00 2001 From: Stefan Wrobel Date: Thu, 15 Aug 2013 17:28:03 -0700 Subject: [PATCH] Update path_prefix default to match the old default 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 --- README.md | 2 +- app/models/spree/social_configuration.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 873a1d33..468900ca 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/app/models/spree/social_configuration.rb b/app/models/spree/social_configuration.rb index 6147f273..2bd11752 100644 --- a/app/models/spree/social_configuration.rb +++ b/app/models/spree/social_configuration.rb @@ -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 \ No newline at end of file +end