Sha256: 97c88be75e1b32c474089bacaf99d0b9e907b78fe8948a4e4177c5e566e4256f

Contents?: true

Size: 380 Bytes

Versions: 1

Compression:

Stored size: 380 Bytes

Contents

# Add cacheable flash JS to defaults for Rails < 3.1 (not needed with asset pipeline)
module Jquery
  module Rails

    class Railtie < ::Rails::Railtie
      if ::Rails::VERSION::MAJOR == 3
        config.before_configuration do
          config.action_view.javascript_expansions[:cacheable_flash] = %w(flash jquery.cookie)
        end
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cacheable_flash-0.2.3 lib/cacheable_flash/rails/railtie.rb