mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 21:25:39 +02:00
Disable method length metrics
This commit is contained in:
parent
46fe1a2671
commit
0a715478eb
1 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,7 @@ module Admin
|
||||||
before_action :set_domain, only: %i[show edit update keep]
|
before_action :set_domain, only: %i[show edit update keep]
|
||||||
authorize_resource
|
authorize_resource
|
||||||
|
|
||||||
|
# rubocop:disable Metrics/MethodLength
|
||||||
def index
|
def index
|
||||||
params[:q] ||= {}
|
params[:q] ||= {}
|
||||||
domains = if params[:statuses_contains]
|
domains = if params[:statuses_contains]
|
||||||
|
@ -30,6 +31,7 @@ module Admin
|
||||||
|
|
||||||
render_by_format('admin/domains/index', 'domains')
|
render_by_format('admin/domains/index', 'domains')
|
||||||
end
|
end
|
||||||
|
# rubocop:enable Metrics/MethodLength
|
||||||
|
|
||||||
def show
|
def show
|
||||||
# Validation is needed to warn users
|
# Validation is needed to warn users
|
||||||
|
@ -40,6 +42,7 @@ module Admin
|
||||||
build_associations
|
build_associations
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# rubocop:disable Metrics/MethodLength
|
||||||
def update
|
def update
|
||||||
rollback_history = @domain.json_statuses_history&.[]('admin_store_statuses_history')
|
rollback_history = @domain.json_statuses_history&.[]('admin_store_statuses_history')
|
||||||
dp = ignore_empty_statuses
|
dp = ignore_empty_statuses
|
||||||
|
@ -57,6 +60,7 @@ module Admin
|
||||||
render 'edit'
|
render 'edit'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
# rubocop:enable Metrics/MethodLength
|
||||||
|
|
||||||
def versions
|
def versions
|
||||||
@domain = Domain.where(id: params[:domain_id]).includes({ versions: :item }).first
|
@domain = Domain.where(id: params[:domain_id]).includes({ versions: :item }).first
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue