Footnotes
Chapter 1
1. You can find this paper, and many other great resources, at www.objectmentor.com.
2. This is actually true only as long as you don’t use find_by_sql
in your finder methods. The mechanism by which the SQL statements are combined (scope
) breaks down when a full raw SQL statement is used.
3. ...or before has_finder
and named_scope
, the predecessors to scope
.
Get Rails™ AntiPatterns: Best Practice Ruby on Rails™ Refactoring now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.