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.



48
49
50
51
# File 'lib/inquery/mixins/relation_validation.rb', line 48

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