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' if defined?(Rails) 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 return configuration end end