Active Record Scopes and Arel

ActiveRecord