Overide the default find_all


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

Is it just me, or did you answer your own question? :wink:


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs