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

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/XStXsH9jW8kJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to