Browse files

Don't cache async calls

  • Loading branch information...
1 parent f815156 commit 152be6b3bd4d9f66150608c10f46851bec375f47 @bcardarella bcardarella committed Oct 17, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −0 coffeescript/rails.validations.coffee
  2. +2 −1 vendor/assets/javascripts/rails.validations.js
View
1 coffeescript/rails.validations.coffee
@@ -389,6 +389,7 @@ window.ClientSideValidations.validators =
url: '/validators/uniqueness',
data: data,
async: false
+ cache: false
}).status == 200
return options.message
View
3 vendor/assets/javascripts/rails.validations.js
@@ -529,7 +529,8 @@
if (jQuery.ajax({
url: '/validators/uniqueness',
data: data,
- async: false
+ async: false,
+ cache: false
}).status === 200) {
return options.message;
}

0 comments on commit 152be6b

Please sign in to comment.