Sha256: 09fb31713ceac159de9928e7b14b4eef1ac8409fe5ca8357d97315eb45aa4ab7
Contents?: true
Size: 791 Bytes
Versions: 30
Compression:
Stored size: 791 Bytes
Contents
module NoNotifierNeeded class Railtie < Rails::Railtie initializer "Include code in controller" do ActiveSupport.on_load(:action_controller) do require File.expand_path('../../../initializers/notifier', __FILE__) #Pass defaults to allow for this to work Notifier.send(:include, Rails.application.routes.url_helpers) # brings ActionDispatch::Routing::UrlFor Notifier.send(:include, ActionView::Helpers::UrlHelper) Notifier.send(:include, ActionView::Helpers::TextHelper) Notifier.send(:include, ActionView::Helpers::TagHelper) Notifier.send(:include, NoNotifierNeeded::Render) Notifier.send(:include, NoNotifierNeeded::Translate) Notifier.send(:extend, NoNotifierNeeded::Send) end end end end
Version data entries
30 entries across 30 versions & 1 rubygems