Skip to content
Snippets Groups Projects
Unverified Commit e28c4181 authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

Fix Cyclomatic issue (#4426)

parent f20668d7
Branches
Tags
No related merge requests found
......@@ -17,7 +17,7 @@ module Api
render_data data: user, status: :ok
end
# rubocop:disable Metrics/AbcSize, Metrics/PerceivedComplexity
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
# POST /api/v1/users.json
# Expects: { user: { :name, :email, :password} }
# Returns: { data: Array[serializable objects] , errors: Array[String] }
......@@ -63,7 +63,7 @@ module Api
render_error errors: Rails.configuration.custom_error_msgs[:record_invalid], status: :bad_request
end
end
# rubocop:enable Metrics/AbcSize, Metrics/PerceivedComplexity
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
def update
user = User.find(params[:id])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment