lib/cacheable_flash/railtie.rb in cacheable_flash-0.3.2 vs lib/cacheable_flash/railtie.rb in cacheable_flash-0.3.3
- 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(jquery.cookie flash)
- end
- end
- end
-end
+module CacheableFlash
+ class Railtie < ::Rails::Railtie
+ # Add cacheable flash JS to defaults for Rails < 3.1 (not needed with asset pipeline)
+ if ::Rails::VERSION::MAJOR == 3 && ::Rails::VERSION::MINOR == 0
+ config.before_configuration do
+ config.action_view.javascript_expansions[:cacheable_flash] = %w(jquery.cookie flash)
+ end
+ end
+ end
+end