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

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}"