runtime modify activerecord