# Override finders?

**URL:** <https://www.ruby-forum.com/t/override-finders/169274>\
**Category:** Rails\
**Created:** [June 1, 2009, 7:42pm UTC](https://www.ruby-forum.com/t/override-finders/169274 "2009-06-01T19:42:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![benol](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@benol](https://www.ruby-forum.com/u/benol)\
**Post date:** [June 1, 2009, 7:42pm UTC](https://www.ruby-forum.com/t/override-finders/169274/1 "2009-06-01T19:42:34Z")

</div>

Hi,

1. 

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

1. 

In a migration I added Car.is\_visible default =\> false.

1. 

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  
pattern).

Any help appreciated.

M.

---

<div class="post-metadata">

**Author:** ![benol](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@benol](https://www.ruby-forum.com/u/benol)\
**Post date:** [June 1, 2009, 8:03pm UTC](https://www.ruby-forum.com/t/override-finders/169274/2 "2009-06-01T20:03:31Z")

</div>

[http://ryandaigle.com/articles/2008/11/18/what-s-new-in-edge-rails-default-scoping](http://ryandaigle.com/articles/2008/11/18/what-s-new-in-edge-rails-default-scoping)

- 

Maurício Linhares  
[http://alinhavado.wordpress.com/](http://alinhavado.wordpress.com/) (pt-br) | [http://blog.codevader.com/](http://blog.codevader.com/)  
(en)

On Mon, Jun 1, 2009 at 2:42 PM, Michal B.

---

<div class="post-metadata">

**Author:** ![benol](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@benol](https://www.ruby-forum.com/u/benol)\
**Post date:** [June 1, 2009, 9:32pm UTC](https://www.ruby-forum.com/t/override-finders/169274/3 "2009-06-01T21:32:23Z")

</div>

MaurÃ­cio Linhares wrote:

> [http://ryandaigle.com/articles/2008/11/18/what-s-new-in-edge-rails-default-scoping](http://ryandaigle.com/articles/2008/11/18/what-s-new-in-edge-rails-default-scoping)

Thats it! Thanks!

M.
