lib/rrj/tools/gem/config.rb in ruby_rabbitmq_janus-2.7.1 vs lib/rrj/tools/gem/config.rb in ruby_rabbitmq_janus-2.7.2.pre.284
- old
+ new
@@ -2,14 +2,16 @@
require 'singleton'
require 'rrj/errors/error'
require 'yaml'
require 'erb'
-require 'rrj/tools/gem/config/gem'
-require 'rrj/tools/gem/config/rabbit'
-require 'rrj/tools/gem/config/queues'
-require 'rrj/tools/gem/config/janus'
+%w[gem rabbit queues janus].each do |file|
+ require File.join('rrj', 'tools', 'gem', 'config', file)
+end
+%w[callbacks methods instances validations].each do |file|
+ require File.join('rrj', 'models', 'concerns', file)
+end
# rubocop:disable Naming/MemoizedInstanceVariableName
module RubyRabbitmqJanus
module Tools
# @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
@@ -67,5 +69,9 @@
end
end
end
end
# rubocop:enable Naming/MemoizedInstanceVariableName
+#
+require File.join('rrj',
+ 'models',
+ RubyRabbitmqJanus::Tools::Config.instance.orm)