Sha256: 709361b69fb260c022d80bd5e8f6482e30f6bacfc9290f3fc0f02552fad97127

Contents?: true

Size: 324 Bytes

Versions: 59

Compression:

Stored size: 324 Bytes

Contents

# frozen_string_literal: true

# Select ORM between Mongoid and ActiveRecord

require 'rrj/errors/error'

# 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

59 entries across 59 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-4.0.1 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-4.0.1.pre.1265973744 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-4.0.1.pre.1265506307 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-4.0.1.pre.1265140558 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-4.0.0 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-4.0.0.pre.1001345090 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-4.0.0.pre.1001181479 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-4.0.0.pre.1001132533 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-4.0.0.pre.1001107243 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-4.0.0.pre.1001043172 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-4.0.0.pre.949167646 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-4.0.0.pre.946892338 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-4.0.0.pre.946565704 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-4.0.0.pre.939149205 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-4.0.0.pre.939137013 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-4.0.0.pre.939133437 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-4.0.0.pre.939119110 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-4.0.0.pre.939113634 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-4.0.0.pre.850041590 lib/rrj/tools/bin/model.rb
ruby_rabbitmq_janus-3.0.1 lib/rrj/tools/bin/model.rb