Sha256: 8567ab7a5695eef7a18202f87a254364213be83f27e35b6065e8fd9aaf96fc41

Contents?: true

Size: 400 Bytes

Versions: 11

Compression:

Stored size: 400 Bytes

Contents

module MyApi
  class Railtie < Rails::Railtie

    config.after_initialize do
      MyApi::Api.cache_store = Rails.cache
    end

    initializer "my_api.log_runtime" do |app|
      require 'my_api/rails/log_subscriber'
      ActiveSupport.on_load(:action_controller) do
        include NCore::ControllerRuntime
        register_api_runtime MyApi::LogSubscriber, 'MyApi'
      end
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ncore-3.4.1 example/lib/my_api/rails/railtie.rb
ncore-3.4.0 example/lib/my_api/rails/railtie.rb
ncore-3.3.4 example/lib/my_api/rails/railtie.rb
ncore-3.3.3 example/lib/my_api/rails/railtie.rb
ncore-3.3.2 example/lib/my_api/rails/railtie.rb
ncore-3.3.1 example/lib/my_api/rails/railtie.rb
ncore-3.3.0 example/lib/my_api/rails/railtie.rb
ncore-3.2.1 example/lib/my_api/rails/railtie.rb
ncore-3.2.0 example/lib/my_api/rails/railtie.rb
ncore-3.1.0 example/lib/my_api/rails/railtie.rb
ncore-3.0.0 example/lib/my_api/rails/railtie.rb