Right, but the docs for ActiveRecord::Base show that it derives from
Object, so there's no "where" method in the chain anywhere.  So I
don't think it's inherited.

On Mar 7, 2:47 pm, Bryan Crossland <[email protected]> wrote:
> On Sun, Mar 6, 2011 at 8:28 PM, tinkerer13 <[email protected]> wrote:
> > So my question is twofold... first, how is "where" an available method
> > on my object subclassed from ActiveRecord:Base?  Is QueryMethods a
> > mixin?
>
> It's inherited.
>
>
>
> > Second, looking at the documentation for ActiveRecordBase, how would I
> > know that "where" is available or how to access it?  I realize it's
> > talked about in the text of the doc, but in general, how would I know
> > what methods are available to an object from a mixin?
>
> It's inherited. If you are inheriting from ActiveRecord::Base it will be
> apart of your model. In every example in the documentation you are
> inheriting ActiveRecord::Base at the top of your class.
>
> Thanks,
> B.

-- 
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