Hi,

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

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

3.
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.
-- 
Posted via http://www.ruby-forum.com/.

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