populator icon indicating copy to clipboard operation
populator copied to clipboard

Build up items in an array of hashes

Open ryanb opened this issue 15 years ago • 0 comments

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

ryanb avatar Jul 01 '09 16:07 ryanb