Sha256: 69eded572e40a18bebf486350a6b9097e12ee736d22e0a954d17f33a6aa535f7
Contents?: true
Size: 1.14 KB
Versions: 29
Compression:
Stored size: 1.14 KB
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 get '/connect/internal/data' => 'zuora_observability/metrics#metrics' 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_observability/metrics#metrics' end end initializer :append_migrations do |app| if ZuoraConnect.configuration.insert_migrations 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 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
29 entries across 29 versions & 1 rubygems