Sha256: 233b314cc37231967cae4c6e8297cc29573f490bcf61e774f9ee1a306e6cd1a2
Contents?: true
Size: 336 Bytes
Versions: 1
Compression:
Stored size: 336 Bytes
Contents
require 'pathname' require 'mongoid' root = Pathname(File.expand_path('../../../test_app', __FILE__)) version = Mongoid::VERSION.to_i current_config = root.join("config/mongoid.#{version}.yml").read config_file = root.join('config/mongoid.yml') config_file.open('w') {|c| c << current_config } Mongoid.load!(config_file, :test)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-mongoid-0.4.0 | spec/support/mongoid.rb |