Skip to content

Commit

Permalink
Remove suggestion from Spree.url deprecation
Browse files Browse the repository at this point in the history
This suggestion could be confusing because Spree.ajax isn't a direct
replacement of Spree.url
  • Loading branch information
jhawthorn committed Jun 14, 2017
1 parent d194535 commit 6d1f959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/assets/javascripts/spree.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Spree.pathFor = function(path) {

Spree.url = function(uri, query) {
if (console && console.warn) {
console.warn('Spree.url is deprecated, please use Spree.ajax for your request instead.');
console.warn('Spree.url is deprecated, and will be removed from a future Solidus version.');
}
if (uri.path === undefined) {
uri = new Uri(uri);
Expand Down

0 comments on commit 6d1f959

Please sign in to comment.