From 6c1289d2eda1d51abae9c604848bbc7f0d775961 Mon Sep 17 00:00:00 2001 From: Joenio Costa Date: Thu, 13 Oct 2011 10:18:21 -0300 Subject: [PATCH] Do not cache lang files of jquery-validation --- app/views/layouts/_javascript.rhtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/_javascript.rhtml b/app/views/layouts/_javascript.rhtml index f2a833c..63fa7a0 100644 --- a/app/views/layouts/_javascript.rhtml +++ b/app/views/layouts/_javascript.rhtml @@ -1,2 +1,3 @@ +<%= javascript_include_tag :defaults, 'jquery-latest.js', 'jquery.noconflict.js', 'jquery.cycle.all.min.js', 'thickbox.js', 'lightbox', 'jquery-ui-1.8.2.custom.min', 'jquery.scrollTo', 'jquery.form.js', 'jquery.cookie', 'reflection', 'add-and-join', 'jquery.tokeninput', 'report-abuse','colorbox', 'jquery-validation/jquery.validate', :cache => 'cache-general' %> <% language = FastGettext.locale %> -<%= javascript_include_tag :defaults, 'jquery-latest.js', 'jquery.noconflict.js', 'jquery.cycle.all.min.js', 'thickbox.js', 'lightbox', 'jquery-ui-1.8.2.custom.min', 'jquery.scrollTo', 'jquery.form.js', 'jquery.cookie', 'reflection', 'add-and-join', 'jquery.tokeninput', 'report-abuse','colorbox', 'jquery-validation/jquery.validate', 'jquery-validation/localization/messages_'+language, 'jquery-validation/localization/methods_'+language, :cache => 'cache-general' %> +<%= javascript_include_tag 'jquery-validation/localization/messages_'+language, 'jquery-validation/localization/methods_'+language %> -- libgit2 0.21.2