Sha256: 4492910e8c97e82015ec2e8bb36eadc9354371b6442211ef604f0ce28bf7940e
Contents?: true
Size: 766 Bytes
Versions: 31
Compression:
Stored size: 766 Bytes
Contents
require 'rails/all' require 'zuora_connect' require 'apartment' require 'httparty' module ZuoraConnect class Engine < ::Rails::Engine isolate_namespace ZuoraConnect initializer "connect", before: :load_config_initializers do |app| Rails.application.routes.append do mount ZuoraConnect::Engine, at: "/connect" 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
31 entries across 31 versions & 1 rubygems