> That's what I initially had.  It work fine for ActiveRecord (from which
> I'm migrating), but not for DataMapper.

by jove you're right - how odd!

I've could get the functionality by doing:

case e.type.to_s
when "EventOne"
  puts 'One'
when "EventTwo"
  puts 'Two'
else
  puts "Unknown event type #{e.type}"
end

it makes me feel unclean tho!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to