Forum: Ruby on Rails override finders?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Michal B. (Guest)
on 2009-06-01 21:42

I have my model for e.g. "Car".
I used this model in lots of places.

In a migration I added Car.is_visible default => false.

Now I wan all of the finder methods to take this flag under
consideration. So initaly none of the Cars will be displayed on my site.
I will have to look for the places where I want to display "not visible"
cars and there add the special condition to the finder method (whitelist

Any help appreciated.

Maurício L. (Guest)
on 2009-06-01 22:03
(Received via mailing list)

Maurício Linhares (pt-br) |

On Mon, Jun 1, 2009 at 2:42 PM, Michal B.
Michal B. (Guest)
on 2009-06-01 23:32
Maurício Linhares wrote:

Thats it! Thanks!

This topic is locked and can not be replied to.