Caius Durling wrote:
On 3 Nov 2008, at 19:53, Earle Clubb wrote:

Is there a way to get the case statement at the bottom to work?  The problem is that if e.type == EventOne (for example) is true, e.type === EventOne is false and the case fails to find a match.

Surely you should use e.class instead of e.type?

e.type returns EventOne, while e.class returns DataMapper::Associations::ManyToOne::Proxy


--~--~---------~--~----~------------~-------~--~----~
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