Sha256: 588ae0307f3ea58e45e232fff3099efa0f478ce24c1918eefbe4473bf413f702

Contents?: true

Size: 894 Bytes

Versions: 19

Compression:

Stored size: 894 Bytes

Contents

require 'zuora_connect/configuration'
require "zuora_connect/engine"
require 'zuora_connect/exceptions'
require 'zuora_connect/controllers/helpers'
require 'zuora_connect/views/helpers'
require 'zuora_connect/railtie'

module ZuoraConnect
  class << self
    attr_accessor :configuration
  end
  module Controllers
    autoload :Helpers,        'zuora_connect/controllers/helpers'
  end

  module Views
    ActionView::Base.send(:include, Helpers)
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.reset
    @configuration = Configuration.new
  end

  def self.configure
    yield(configuration)
    ::Apartment.excluded_models << "Delayed::Job" if configuration.delayed_job
    ::Apartment.excluded_models.concat(configuration.additional_apartment_models) if configuration.additional_apartment_models.class == Array

    return configuration
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
zuora_connect-1.4.59 lib/zuora_connect.rb
zuora_connect-1.4.58 lib/zuora_connect.rb
zuora_connect-1.4.57 lib/zuora_connect.rb
zuora_connect-1.4.55a lib/zuora_connect.rb
zuora_connect-1.4.56 lib/zuora_connect.rb
zuora_connect-1.4.55 lib/zuora_connect.rb
zuora_connect-1.4.54 lib/zuora_connect.rb
zuora_connect-1.4.53 lib/zuora_connect.rb
zuora_connect-1.4.52 lib/zuora_connect.rb
zuora_connect-1.4.51 lib/zuora_connect.rb
zuora_connect-1.4.50 lib/zuora_connect.rb
zuora_connect-1.4.49 lib/zuora_connect.rb
zuora_connect-1.4.48 lib/zuora_connect.rb
zuora_connect-1.4.46 lib/zuora_connect.rb
zuora_connect-1.4.45 lib/zuora_connect.rb
zuora_connect-1.4.44 lib/zuora_connect.rb
zuora_connect-1.4.43 lib/zuora_connect.rb
zuora_connect-1.4.42 lib/zuora_connect.rb
zuora_connect-1.4.41 lib/zuora_connect.rb