How to simplify Active Record scopes that reference other models
http://aokolish.me/blog/2015/05/26/how-to-simplify-active-record-scopes-that-reference-other-tables/
Related Bookmarks
- ActiveRecord Eager Loading with Query Objects and Decorators
- Nested forms and validations with ActiveModel::Model objects
- Ruby on Rails Scope patterns and activerecord naming conventions
- 3 ActiveRecord Mistakes That Slow Down Rails Apps: Count, Where and Present
- David Verhasselt - Different Ways to Set Attributes in ActiveRecord