It seems as though the eventable_type
method isn't yet defined when method_missing
triggers (some methods in Rails get dynamically defined through method_missing
the first time you call them).
I'd try a different means of getting the value you want; perhaps self.attributes["eventable_type"]
will work?