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