Sha256: 7eecd3b6c732c3a07b91abc7cbff709ee04234b6836fc2a0dfd5c12dc5d3ee1e

Contents?: true

Size: 425 Bytes

Versions: 5

Compression:

Stored size: 425 Bytes

Contents

require "cat_tree/rack"
require "cat_tree/initializer"
require "cat_tree/logger"
require 'rails'

module CatTree
  class Railtie < Rails::Railtie
    initializer "cat_tree.configure_rails_initialization" do |app|
      app.config.app_middleware.use  CatTree::Rack
      CatTree::Logger.logger = Rails.logger

      ActiveSupport.on_load(:active_record) do
        Initializer.extend_active_record
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cat_tree-1.1.1 lib/cat_tree/railtie.rb
cat_tree-1.1.0 lib/cat_tree/railtie.rb
cat_tree-1.0.0 lib/cat_tree/railtie.rb
cat_tree-0.0.2 lib/cat_tree/railtie.rb
cat_tree-0.0.1 lib/cat_tree/railtie.rb