Prevent foreign_key_for? from type casting all attributes