class ActiveRecord::Relation

Public Instance Methods

or(*other) click to toggle source
# File lib/rails_or/active_record/extension.rb, line 5
def or(*other)
  rails5_or(RailsOr.parse_parameter(self, *other))
end
Also aliased as: rails5_or
or_having(hash) click to toggle source
# File lib/rails_or/active_record/extension.rb, line 43
def or_having(hash)
  self.or(RailsOr.spawn_relation(self, :having, hash))
end
or_not(*args) click to toggle source
# File lib/rails_or/active_record/extension.rb, line 39
def or_not(*args) # Works in Rails 4+
  self.or(klass.where.not(*args))
end
rails5_or(*other)
Alias for: or