Sha256: f756dbf9c9c1649df42425411e503073e9b43576e42a8dfc4458238cb2dfeac1

Contents?: true

Size: 445 Bytes

Versions: 6

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

module MetaTags
  class Railtie < Rails::Railtie
    initializer 'meta_tags.setup_action_controller' do
      ActiveSupport.on_load :action_controller do
        ActionController::Base.include MetaTags::ControllerHelper
      end
    end

    initializer 'meta_tags.setup_action_view' do
      ActiveSupport.on_load :action_view do
        ActionView::Base.include MetaTags::ViewHelper
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
meta-tags-2.18.0 lib/meta_tags/railtie.rb
meta-tags-2.17.0 lib/meta_tags/railtie.rb
meta-tags-2.16.0 lib/meta_tags/railtie.rb
meta-tags-2.15.0 lib/meta_tags/railtie.rb
meta-tags-2.14.0 lib/meta_tags/railtie.rb
meta-tags-2.13.0 lib/meta_tags/railtie.rb