Is it just me, or did you answer your own question? ;)
-Jonathan.
On 8/14/06, John Butler <johnnybutler7@gmail.com>
wrote:>
> Hi,
>
> In my model i want to overide the default find all for sorting purposes.
> Is this possible or can this only be done in the control or by adding a
> custom method in the model.
>
>
> def self.find_all()
> @contents = Content.find(:all,
> :order => ''pos, position_id'')
> end
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060814/e21331bd/attachment-0001.html