Module: Inquery::Mixins::RelationValidation::ClassMethods

Defined in:
lib/inquery/mixins/relation_validation.rb

Instance Method Summary collapse

Instance Method Details

#relation(options = {}) ⇒ Object

Allows to configure the parameters of the relation this query operates on. See OPTIONS_SCHEMA for documentation of the options hash.



55
56
57
58
# File 'lib/inquery/mixins/relation_validation.rb', line 55

def relation(options = {})
  OPTIONS_SCHEMA.validate!(options)
  self._relation_options = options
end