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.40n lib/zuora_connect/engine.rb
zuora_connect-1.5.40m lib/zuora_connect/engine.rb
zuora_connect-1.5.40k lib/zuora_connect/engine.rb
zuora_connect-1.5.40j lib/zuora_connect/engine.rb
zuora_connect-1.5.40i lib/zuora_connect/engine.rb
zuora_connect-1.5.40h lib/zuora_connect/engine.rb
zuora_connect-1.5.40g lib/zuora_connect/engine.rb
zuora_connect-1.5.40f lib/zuora_connect/engine.rb
zuora_connect-1.5.40e lib/zuora_connect/engine.rb
zuora_connect-1.5.40d lib/zuora_connect/engine.rb
zuora_connect-1.5.40c lib/zuora_connect/engine.rb
zuora_connect-1.5.40b lib/zuora_connect/engine.rb
zuora_connect-1.5.40a lib/zuora_connect/engine.rb
zuora_connect-1.5.40 lib/zuora_connect/engine.rb
zuora_connect-1.5.39 lib/zuora_connect/engine.rb
zuora_connect-1.5.38 lib/zuora_connect/engine.rb
zuora_connect-1.5.37 lib/zuora_connect/engine.rb
zuora_connect-1.5.36 lib/zuora_connect/engine.rb
zuora_connect-1.5.35 lib/zuora_connect/engine.rb
zuora_connect-1.5.34 lib/zuora_connect/engine.rb