Update record.rb

The new assign_attributes call is now compatible with the latest mongoid and rails 4 assign_attributes method definitions