Class: Tengine::Job::Vertex::VertexValidations
- Inherits:
-
Mongoid::Errors::Validations
- Object
- Mongoid::Errors::Validations
- Tengine::Job::Vertex::VertexValidations
- Defined in:
- lib/tengine/job/vertex.rb
Overview
def short_inspect
"#<%%%-30s id: %s>" % [self.class.name, self.id.to_s]
end
alias_method :long_inspect, :inspect
alias_method :inspect, :short_inspect
Instance Method Summary collapse
Instance Method Details
#translate(key, options) ⇒ Object
34 35 36 37 38 |
# File 'lib/tengine/job/vertex.rb', line 34 def translate(key, ) ::I18n.translate( "#{Mongoid::Errors::MongoidError::BASE_KEY}.validations", {:errors => Tengine::Job::Vertex.flatten_errors(document).to_a.join(', ')}) end |