module Riveter::CoreExtensions::ChainedQuerySupport

Public Instance Methods

where?(condition, *args) click to toggle source

returns a new relation, which is the result of filtering the current relation according to the conditions in the arguments if the given condition is met

# File lib/riveter/core_extensions.rb, line 173
def where?(condition, *args)
  condition ? self.where(*args) : self
end