class Libis::Ingester::API::Validator::JobId
Public Instance Methods
validate_param!(attr_name, params)
click to toggle source
# File lib/libis/ingester/server/api/validator/job_id.rb, line 6 def validate_param!(attr_name, params) unless Libis::Ingester::Job.find_by(id: params[attr_name]) fail Grape::Exceptions::Validation, params: [@scope.full_name(attr_name)], message: "'#{params[attr_name]}': job could not be found." end end