Sha256: 21e555430cd46a18337a52d6d366f999e5335ee7962238a5830397818cef65d9
Contents?: true
Size: 454 Bytes
Versions: 5
Compression:
Stored size: 454 Bytes
Contents
module MessageBlock if defined?(Rails::Railtie) class Railtie < Rails::Railtie initializer "message_block.insert_helpers" do ActiveSupport.on_load(:action_view) do MessageBlock::Railtie.insert end end rake_tasks do load "tasks/message_block.rake" end end end class Railtie def self.insert ActionView::Base.send(:include, MessageBlock::Helpers) end end end
Version data entries
5 entries across 5 versions & 1 rubygems