Module: Schema::Controls::Schema::Validation
- Defined in:
- lib/schema/controls/schema.rb
Defined Under Namespace
Classes: Example
Class Method Summary collapse
Class Method Details
.errors ⇒ Object
140 141 142 143 144 145 |
# File 'lib/schema/controls/schema.rb', line 140 def self.errors [ "some_attribute can't be nil", "some_other_attribute can't be nil" ] end |
.example ⇒ Object
136 137 138 |
# File 'lib/schema/controls/schema.rb', line 136 def self.example Example.new end |