benglerpebbles/petroglyph — Issue #3: A natural extension of merge
Author: simen
Created: 2011-12-14 13:31:32+00:00
State: open

I am building a hash where i need to overlap two models, so I'll be using merge, naturally. But merge gobbles up everything and merges it – I should be able to filter a little bit like I have become used to:

collection :entries => entries do |entry|
node :trackers, entry.trackers.map(&:uid)
merge entry.event do
attributes :description, :metadata, :originator
end
end