Sha256: ec6842787e008b022d0071f69f27580f782ca3afa6ed94bc0f4b74778b3b784c

Contents?: true

Size: 1005 Bytes

Versions: 61

Compression:

Stored size: 1005 Bytes

Contents

require 'rails/all'
require 'zuora_connect'
require 'apartment'
require 'httparty'
require 'zuora_api'

module ZuoraConnect
  class Engine < ::Rails::Engine
    isolate_namespace ZuoraConnect

    initializer "connect", before: :load_config_initializers do |app|
      Rails.application.routes.prepend do
        mount ZuoraConnect::Engine, at: "/connect"
        match '/api/connect/health', via: :all, to: 'zuora_connect/static#health'
        match '/api/connect/internal/data', via: :all, to: 'zuora_connect/static#metrics'
      end
    end

    initializer :append_migrations do |app|
      unless app.root.to_s.match root.to_s
        config.paths["db/migrate"].expanded.each do |expanded_path|
          app.config.paths["db/migrate"] << expanded_path
        end
      end
    end

    initializer "connect.helpers" do
      ActiveSupport.on_load(:action_controller) do
        include ZuoraConnect::Controllers::Helpers
        helper ZuoraConnect::ApplicationHelper
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
zuora_connect-2.0.38 lib/zuora_connect/engine.rb
zuora_connect-2.0.36 lib/zuora_connect/engine.rb
zuora_connect-2.0.35 lib/zuora_connect/engine.rb
zuora_connect-2.0.34 lib/zuora_connect/engine.rb
zuora_connect-2.0.33 lib/zuora_connect/engine.rb
zuora_connect-2.0.32 lib/zuora_connect/engine.rb
zuora_connect-2.0.31 lib/zuora_connect/engine.rb
zuora_connect-2.0.30 lib/zuora_connect/engine.rb
zuora_connect-2.0.29 lib/zuora_connect/engine.rb
zuora_connect-2.0.28 lib/zuora_connect/engine.rb
zuora_connect-2.0.27 lib/zuora_connect/engine.rb
zuora_connect-2.0.26 lib/zuora_connect/engine.rb
zuora_connect-2.0.25 lib/zuora_connect/engine.rb
zuora_connect-2.0.24 lib/zuora_connect/engine.rb
zuora_connect-2.0.23 lib/zuora_connect/engine.rb
zuora_connect-2.0.22 lib/zuora_connect/engine.rb
zuora_connect-2.0.21 lib/zuora_connect/engine.rb
zuora_connect-2.0.20 lib/zuora_connect/engine.rb
zuora_connect-2.0.19 lib/zuora_connect/engine.rb
zuora_connect-2.0.18 lib/zuora_connect/engine.rb