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.



46
47
48
49
# File 'lib/inquery/mixins/relation_validation.rb', line 46

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