/ ruby

db_name with Mongoid

I have been using Mongoid for awhile now and with the newest release I ran into having issues with getting the error; 'validate_db_name': db_name must be a String or Symbol (TypeError).
The quick workaround is to put the following into your environment.rb

  require 'yaml'
  YAML::ENGINE.yamler='syck'

  def new_method
    some code goes here
  end