class AWS::Record::Model::Scope
def where *conditions
-
(Scope)
- Returns a new scope with the passed conditions applied.
Parameters:
-
*values
(String
) -- A value that should be quoted into the -
conditions_string
(String
) -- A sql-like where string with -
conditions
(Hash
) --
Overloads:
-
where(conditions_string, *values)
-
where(conditions_hash)
def where *conditions if conditions.empty? raise ArgumentError, 'missing required condition' end _with(:where => @options[:where] + [conditions]) end