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.7.65 lib/zuora_connect/engine.rb
zuora_connect-1.7.64 lib/zuora_connect/engine.rb
zuora_connect-1.7.63 lib/zuora_connect/engine.rb
zuora_connect-1.7.62 lib/zuora_connect/engine.rb
zuora_connect-1.7.61 lib/zuora_connect/engine.rb
zuora_connect-1.7.60 lib/zuora_connect/engine.rb
zuora_connect-1.7.59 lib/zuora_connect/engine.rb
zuora_connect-1.7.58 lib/zuora_connect/engine.rb
zuora_connect-1.7.57 lib/zuora_connect/engine.rb
zuora_connect-1.7.56 lib/zuora_connect/engine.rb
zuora_connect-1.7.55 lib/zuora_connect/engine.rb
zuora_connect-1.7.54 lib/zuora_connect/engine.rb
zuora_connect-1.7.53 lib/zuora_connect/engine.rb
zuora_connect-1.7.52 lib/zuora_connect/engine.rb
zuora_connect-1.7.51 lib/zuora_connect/engine.rb
zuora_connect-1.7.50 lib/zuora_connect/engine.rb
zuora_connect-1.7.49 lib/zuora_connect/engine.rb
zuora_connect-1.7.48 lib/zuora_connect/engine.rb
zuora_connect-1.7.47 lib/zuora_connect/engine.rb
zuora_connect-1.7.46 lib/zuora_connect/engine.rb