Sha256: 373d0899a5f4394f5908e306e6cfc4f652efd016fcd57a7d84f665a20f8392ae

Contents?: true

Size: 378 Bytes

Versions: 12

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

# Select ORM between Mongoid and ActiveRecord

require 'rrj/errors/error'
require RubyRabbitmqJanus::Tools::Config.instance.orm

# For mongoid gem
if RubyRabbitmqJanus::Tools::Config.instance.orm.eql?('mongoid')
  Mongoid.load!(File.join(Dir.pwd, 'config', 'mongoid.yml'),
                RubyRabbitmqJanus::Tools::Config.instance.env.to_sym)
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.7.1 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-2.7.1.pre.274 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-2.7.0.pre.272 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-2.7.0 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-2.7.0.pre.269 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-2.7.0.pre.267 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-2.6.0 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-2.6.0.pre.263 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-2.6.0.pre.261 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-2.6.0.pre.260 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-2.6.0.pre.259 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-2.6.0.pre.258 lib/rrj/tools/bin/model.rb