module ESA::Traits::OrScope

gist.github.com/tlowrimore/5257360

OR’s together provided scopes, returning an ActiveRecord::Relation. This implementation is smart enough to not only handle your where clauses, but it also takes care of your joins!

Public Class Methods

included(base) click to toggle source
# File app/models/esa/traits/or_scope.rb, line 11
def self.included(base)
  base.send :extend, ClassMethods
end