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/api/v2/override_values_controller.rb
def return_if_override_mismatch
if (@override_values && @override_value && !@override_values.find_by_id(@override_value.id)) || (@override_values && !@override_value) || !@override_values
msg = "Override value not found by id '#{params[:id]}'"
render :json => {:message => msg}, :status => :not_found and return false
not_found "Override value not found by id '#{params[:id]}'"
end
end
......
end
end
end
end

Also available in: Unified diff