Permalink
Browse files

Same order as elsewhere, name, size, type.

  • Loading branch information...
1 parent 005c205 commit d27ff92026371d2bf191fd948a5caf98d7a3f109 @jnunemaker committed Dec 30, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/joint/class_methods.rb
@@ -37,8 +37,8 @@ def #{name}=(file)
else
send("#{name}_id=", BSON::ObjectId.new) if send("#{name}_id").nil?
send("#{name}_name=", Joint.name(file))
- send("#{name}_type=", Joint.type(file))
send("#{name}_size=", Joint.size(file))
+ send("#{name}_type=", Joint.type(file))
assigned_attachments[:#{name}] = file
nil_attachments.delete(:#{name})
end

0 comments on commit d27ff92

Please sign in to comment.