On 20 June 2012 07:24, VIKRAM KUMAR MISHRA
<[email protected]> wrote:
> 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.

Sorry for not answering the question, but I cannot contain my
curiosity to know why you need to do this.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
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