Project

General

Profile

« Previous | Next » 

Revision 46338cd7

Added by Daniel Lobato Garcia over 10 years ago

fixes #3515 - API handles not found objects with 404

View differences:

app/controllers/concerns/api/v2/lookup_keys_common_controller.rb
else
params.keys.include?('smart_class_parameter_id') ? params['smart_variable_id'] : params['id']
end
msg = "#{obj} not found by id '#{id}'"
render :json => {:message => msg}, :status => :not_found and return false
not_found "#{obj} not found by id '#{id}'"
end
end

Also available in: Unified diff