Module: Inquery::Mixins::SchemaValidation::ClassMethods
- Defined in:
- lib/inquery/mixins/schema_validation.rb
Instance Method Summary collapse
Instance Method Details
#schema(*args, &block) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/inquery/mixins/schema_validation.rb', line 12 def schema(*args, &block) if defined?(Schemacop::V2) schema = Schemacop::V2::Schema.new(*args, &block) else schema = Schemacop::Schema.new(*args, &block) end self._schema = schema end |