Sha256: 66f08ec265fd4335a8fb0c5ecd83e6f2583f7f680f4282c56c3c0411162cad4b

Contents?: true

Size: 784 Bytes

Versions: 149

Compression:

Stored size: 784 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"
      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

149 entries across 149 versions & 2 rubygems

Version Path
zuora_connect-1.5.07 lib/zuora_connect/engine.rb
zuora_connect-1.5.06 lib/zuora_connect/engine.rb
zuora_connect-1.5.05 lib/zuora_connect/engine.rb
zuora_connect-1.5.04 lib/zuora_connect/engine.rb
zuora_connect-1.5.03a lib/zuora_connect/engine.rb
zuora_connect-1.5.03 lib/zuora_connect/engine.rb
zuora_connect-1.5.02 lib/zuora_connect/engine.rb
zuora_connect-1.5.01 lib/zuora_connect/engine.rb
zuora_connect-1.5.0 lib/zuora_connect/engine.rb