Merge pull request #1 from Pickachu/patch-1

Send object a message instead of directly setting the attribute
This commit is contained in:
John Bintz 2013-08-01 13:59:42 -07:00
commit a6b1bbaf77
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ module SeedFuMongoid
def seed!
data.each do |key, value|
document[key] = value
document.send :"#{key}=", value
end
puts "#{@klass.name} #{document.attributes}"