lib/basquiat/support/configuration.rb in basquiat-1.3.0.pre.1 vs lib/basquiat/support/configuration.rb in basquiat-1.3.0
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
require 'naught'
require 'erb'
require 'basquiat/support/hash_refinements'
module Basquiat
@@ -13,11 +14,11 @@
@yaml = {}
@rescue_proc = lambda do |exception, message|
logger.error do
{ exception: exception, stack_trace: exception.stack_trace, message: message }.to_json
end
- fail exception
+ raise exception
end
end
# @!attribute queue_name
# @return [String] the queue name. Defaults to 'basquiat.queue'
@@ -68,10 +69,10 @@
config.fetch(:default_adapter) { 'Basquiat::Adapters::Test' }
end
# Used by the railtie. Forces the reconfiguration of all extended classes
def reload_classes
- Basquiat::Base.descendants.each(&:reload_adapter_from_configuration)
+ Basquiat::Base.reconfigure_children
end
private
def config