Sha256: 32bd3ab208a8e29f9ad343da28c7407dc713ba0cce831c258786779a190800a7

Contents?: true

Size: 400 Bytes

Versions: 4

Compression:

Stored size: 400 Bytes

Contents

require "noindex/controller"
require "noindex/view_helpers"

module Noindex
  class Railtie < Rails::Railtie

    initializer 'noindex.controller' do
      ActiveSupport.on_load :action_controller do
        include Noindex::Controller
      end
    end

    initializer 'noindex.helper' do
      ActiveSupport.on_load :action_view do
        include Noindex::ViewHelpers
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
noindex-0.0.4 lib/noindex/railtie.rb
noindex-0.0.3 lib/noindex/railtie.rb
noindex-0.0.2 lib/noindex/railtie.rb
noindex-0.0.1 lib/noindex/railtie.rb