lib/cacheable_flash/railtie.rb in cacheable_flash-0.2.8 vs lib/cacheable_flash/railtie.rb in cacheable_flash-0.2.9
- old
+ new
@@ -1,10 +1,10 @@
# Add cacheable flash JS to defaults for Rails < 3.1 (not needed with asset pipeline)
module CacheableFlash
class Railtie < ::Rails::Railtie
if ::Rails::VERSION::MAJOR == 3
config.before_configuration do
- config.action_view.javascript_expansions[:cacheable_flash] = %w(flash jquery.cookie)
+ config.action_view.javascript_expansions[:cacheable_flash] = %w(jquery.cookie flash)
end
end
end
end