Hi All,
I want to derive the model name from table name.
One method i got is using table_name.classify. But this does not give
actual model name. The scenario is
Class User < ActiveRecord::Base
self.table_name = “abc_xyz”
end
Now i want to retrieve the model name from table name “abc_xyz” which
should be User.
Any help is highly appreciated.
Thanks
Vikram