Metaprogramming

Gerenate the method to check if the activitable_type is the right one