Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Makes it harder to do the wrong thing in Rails by privatizing ActiveRecord::Base#find
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
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.