Using try to create error messages ensures no crash when not using ActiveRecord/Mongoid but having it misconfigured... Instead nothing gets saved. If desired to keep backwards compatibility with previous ruby versions, this could be changed to add an if respond_to? at the end of the line instead.