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

Version Path
no_notifier_needed-2.4.5 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.4.4 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.4.3 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.4.2 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.4.1 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.4.0 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.3.8 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.3.7 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.3.6 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.3.5 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.3.4 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.3.3 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.3.2 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.3.1 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.3.0 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.2.4 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.2.3 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.2.2 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.2.1 lib/no_notifier_needed/railtie.rb
no_notifier_needed-2.2.0 lib/no_notifier_needed/railtie.rb