Active Record scopes vs class methods
Here at Plataformatec we use Github Pull Requests a lot for code review and this usually yields tons of constructive comments and excellent discussions from time to time. One of the recent topics was about whether we should use scopes or class methods throughout the project to be consistent. Its also not hard to find discussions about it all over the internet. The classic comment usually boils down to “there is no difference between them” or “it is a matter of taste”. I tend to agree with both sentences, but Id like to show some slight differences that exist between both.
Source: Active Record scopes vs class methods - Plataformatec Blog via Ruby on Rails ActiveRecord scopes vs class methods - StackOverflow
Personally, I tend towards class methods and other Ruby built-ins, primarily because I write plenty of Ruby without Rails.