class Tengine::Job::Template::Vertex::VertexValidations

Public Instance Methods

translate(key, options) click to toggle source
# File lib/tengine/job/template/vertex.rb, line 41
def translate(key, options)
  ::I18n.translate(
    "#{Mongoid::Errors::MongoidError::BASE_KEY}.validations",
    {:errors => Tengine::Job::Template::Vertex.flatten_errors(document).to_a.join(', ')})
end