Sha256: cdf4ea4e95f25a0e824d10c4ab034c6c2d1fe8f343e0171ef658aabdf5b8fac3

Contents?: true

Size: 260 Bytes

Versions: 2

Compression:

Stored size: 260 Bytes

Contents

require 'unobtrusive_flash'
require 'rails'

module UnobtrusiveFlash
  class Railtie < Rails::Railtie
    initializer 'unobtrusive_flash.initialize', :after => :after_initialize do
      ActionController::Base.send :include, UnobtrusiveFlash
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
unobtrusive_flash-0.0.2 lib/unobtrusive_flash/railtie.rb
unobtrusive_flash-0.0.1 lib/unobtrusive_flash/railtie.rb