Sha256: 26b2056aea189704357f31a7894c5364e46b0c43f56d953154d6022a64555777

Contents?: true

Size: 922 Bytes

Versions: 18

Compression:

Stored size: 922 Bytes

Contents

module RailsOps
  # @private
  class Railtie < Rails::Railtie
    initializer 'rails_ops' do |_app|
      # ---------------------------------------------------------------
      # Load hookup config eagerly at application startup unless
      # in development mode.
      # ---------------------------------------------------------------
      unless Rails.env.development?
        RailsOps.hookup.load_config
      end

      # ---------------------------------------------------------------
      # Attach log subscriber to rails.
      # ---------------------------------------------------------------
      RailsOps::LogSubscriber.attach_to :rails_ops

      # ---------------------------------------------------------------
      # Include controller mixin
      # ---------------------------------------------------------------
      ActionController::Base.send :include, RailsOps::ControllerMixin
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rails_ops-1.0.17.1 lib/rails_ops/railtie.rb
rails_ops-1.1.1 lib/rails_ops/railtie.rb
rails_ops-1.1.0 lib/rails_ops/railtie.rb
rails_ops-1.0.21 lib/rails_ops/railtie.rb
rails_ops-1.0.20 lib/rails_ops/railtie.rb
rails_ops-1.0.19 lib/rails_ops/railtie.rb
rails_ops-1.0.18 lib/rails_ops/railtie.rb
rails_ops-1.0.17 lib/rails_ops/railtie.rb
rails_ops-1.0.16 lib/rails_ops/railtie.rb
rails_ops-1.0.15 lib/rails_ops/railtie.rb
rails_ops-1.0.14 lib/rails_ops/railtie.rb
rails_ops-1.0.13 lib/rails_ops/railtie.rb
rails_ops-1.0.12 lib/rails_ops/railtie.rb
rails_ops-1.0.11 lib/rails_ops/railtie.rb
rails_ops-1.0.10 lib/rails_ops/railtie.rb
rails_ops-1.0.9 lib/rails_ops/railtie.rb
rails_ops-1.0.7 lib/rails_ops/railtie.rb
rails_ops-1.0.6 lib/rails_ops/railtie.rb