On 25 February 2011 08:12, Javix <s.cambour@gmail.com> wrote:
> All the classes inside 'models' folder are considered as ActiveRecord
> classes and Rails will try to find a corresponding table in the
> database named as plural of the model. It's a convention; To bypass it
> and have a model independent from ActiveRecord class, create it in
> 'lib' folder and require it in the class where you need it.
I don't believe that is true. I understood that as long as the model
does not derive from ActiveRecord then it should not look in the
database.
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment