Sha256: 5afd8eb63692e24e0fbf2e0fcbe6e75112e86cf0b9a324c1762fd1bdd64920ad

Contents?: true

Size: 373 Bytes

Versions: 2

Compression:

Stored size: 373 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cacheable_flash-0.3.4 lib/cacheable_flash/railtie.rb
cacheable_flash-0.3.3 lib/cacheable_flash/railtie.rb