codeodor / findfail

Makes it harder to do the wrong thing in Rails by privatizing ActiveRecord::Base#find

This URL has Read+Write access

findfail / README
100644 5 lines (3 sloc) 0.369 kb
1
2
3
4
5
Just add the repository files under your Rails app's vendor/plugins directory under a new one called "findfail" and you're ready to go.
 
Findfail results in less business logic in your views and controllers because it forces you to open a model and add a method. Since you're already in the right place, you may as well stay there.
 
It preys on your laziness that way.