Sha256: c9b77947de284e6d7a20b0e5b7c61f13e525686bb720045e8b6caa1c5f3bd7da

Contents?: true

Size: 322 Bytes

Versions: 7

Compression:

Stored size: 322 Bytes

Contents

require 'unobtrusive_flash'
require "unobtrusive_flash/controller_mixin"
require 'rails'

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
unobtrusive_flash-3.3.1 lib/unobtrusive_flash/engine.rb
unobtrusive_flash-3.3.0 lib/unobtrusive_flash/engine.rb
unobtrusive_flash-3.2.0 lib/unobtrusive_flash/engine.rb
unobtrusive_flash-3.1.0 lib/unobtrusive_flash/engine.rb
unobtrusive_flash-3.0.0 lib/unobtrusive_flash/engine.rb
unobtrusive_flash-2.1.0 lib/unobtrusive_flash/engine.rb
unobtrusive_flash-2.0.0 lib/unobtrusive_flash/engine.rb