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' require 'resque/additions' require 'resque/dynamic_queues' require 'resque/self_lookup' require 'metrics/influx/point_value' require 'metrics/net' 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