lib/cloud_controller/rest_controller/object_renderer.rb
Method render_json
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def render_json(controller, obj, opts)
inline_relations_depth = opts[:inline_relations_depth] || @default_inline_relations_depth
if inline_relations_depth > @max_inline_relations_depth
raise CloudController::Errors::ApiError.new_from_details('BadQueryParameter',
"inline_relations_depth must be <= #{@max_inline_relations_depth}")