Owner class probably has a method table_name or something similar that will give you want you want here.