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/template_combinations_controller.rb
def find_parent_config_template
@config_template = ConfigTemplate.find(params[:config_template_id])
unless @config_template
render_error 'not_found', :status => :not_found and return false
end
not_found unless @config_template
@config_template
end
end

Also available in: Unified diff