Sha256: a46c25aff41981202e4b82430c3419c823862ba23fc5f0b4276ada722190a4ea

Contents?: true

Size: 347 Bytes

Versions: 5

Compression:

Stored size: 347 Bytes

Contents

# 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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cacheable_flash-0.3.2 lib/cacheable_flash/railtie.rb
cacheable_flash-0.3.1 lib/cacheable_flash/railtie.rb
cacheable_flash-0.3.0 lib/cacheable_flash/railtie.rb
cacheable_flash-0.2.10 lib/cacheable_flash/railtie.rb
cacheable_flash-0.2.9 lib/cacheable_flash/railtie.rb