Sha256: 8fe8c4ef80d359273752bc2a62f176a21faf0f697a398030428a97fd283718a0

Contents?: true

Size: 525 Bytes

Versions: 6

Compression:

Stored size: 525 Bytes

Contents

require 'bootstrap_flash_messages/helpers'
require 'bootstrap_flash_messages/flash_messages'

module BootstrapFlashMessages
  def self.initialize
    return if @initialized
    raise "ActionController is not available yet." unless defined?(ActionController)
    ActionController::Base.send(:helper, BootstrapFlashMessages::Helpers)
    ActionController::Base.send(:include, BootstrapFlashMessages::FlashMessages)
    @initialized = true
  end
end

if defined?(Rails::Railtie)
  require 'bootstrap_flash_messages/railtie'
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bootstrap_flash_messages-0.0.6 lib/bootstrap_flash_messages.rb
bootstrap_flash_messages-0.0.5 lib/bootstrap_flash_messages.rb
bootstrap_flash_messages-0.0.4 lib/bootstrap_flash_messages.rb
bootstrap_flash_messages-0.0.3 lib/bootstrap_flash_messages.rb
bootstrap_flash_messages-0.0.2 lib/bootstrap_flash_messages.rb
bootstrap_flash_messages-0.0.1 lib/bootstrap_flash_messages.rb