Sha256: 1bf2037a20d3edc7704e9d15c11f4eca052fa01b60f996a68d3d62de3b44c1dd

Contents?: true

Size: 963 Bytes

Versions: 6

Compression:

Stored size: 963 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
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zuora_connect-1.7.710 lib/zuora_connect/engine.rb
zuora_connect-1.7.71 lib/zuora_connect/engine.rb
zuora_connect-1.7.70 lib/zuora_connect/engine.rb
zuora_connect-1.7.69 lib/zuora_connect/engine.rb
zuora_connect-1.7.68 lib/zuora_connect/engine.rb
zuora_connect-1.7.67 lib/zuora_connect/engine.rb