Module: Riveter::CoreExtensions::ChainedQuerySupport
- Extended by:
- ActiveSupport::Concern
- Included in:
- ActiveRecord::Relation
- Defined in:
- lib/riveter/core_extensions.rb
Instance Method Summary collapse
-
#where?(condition, *args) ⇒ Boolean
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.
Instance Method Details
#where?(condition, *args) ⇒ Boolean
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
173 174 175 |
# File 'lib/riveter/core_extensions.rb', line 173 def where?(condition, *args) condition ? self.where(*args) : self end |