ruby on rails - How to store the name of child class in audits "auditable_type" column in single table inheritance -


i using single table inheritance in rails, , auditing parent class. whenever, create/update child class/model, auditable type audit stores name of parent class instead of name of child class .

is feature of audited intended, or side effect of sti ? ways in know more specific auditable type in single table inheritance? piece of code writing.

class tdrdetail < activerecord::base   audited end  class internationcc < tdrdetail  end 

whenever record created/updated/deleted internationcc, auditable_type in created audit tdrdetail.

how can store more specific type in audits table?
tia.


Comments