set_table_name doesn't take effect immediately

Hi,

I opened a lighthouse ticket for this half an year ago but it’s been marked as ‘stale’ recently while it still exists in edge rails … I uploaded a patch there, including a test case. Dunno who should be assigned to, anybody can check?

the ticket: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4992-new-table-name-set-by-set_table_name-not-used-by-model#ticket-4992-7

Thanks,
Jan