changed introspection of collection to determine class

When I tried using your gem as-is this line crapped out, returning 'ActiveRecord_Relation' for something like 'MyFoo::ActiveRecordRelation'. This change returns 'MyFoo' instead (nb havent tested this with anything other than top-level classes)