Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't cache async calls

  • Loading branch information...
commit 152be6b3bd4d9f66150608c10f46851bec375f47 1 parent f815156
@bcardarella bcardarella authored
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.
Something went wrong with that request. Please try again.