populator
populator copied to clipboard
Build up items in an array of hashes
Sometimes it's not applicable to do a loop because it is limited in how the nesting works. Instead one should be able to build up an array of hashes and assign it in one call.
Item.populate [{:name => "foo"}, {:name => "bar"}]