From 79c161f2ecffba0800fa495adce9ba2f1a8d3de0 Mon Sep 17 00:00:00 2001 From: Niels Bennke Date: Wed, 12 Jun 2024 07:35:44 +0200 Subject: [PATCH] PR #433: Fix RuboCop Style/SuperArguments: Call super without arguments and parentheses when the signature is identical. --- app/controllers/groups_controller.rb | 2 +- app/controllers/users_controller.rb | 2 +- app/mailers/application_mailer.rb | 2 +- app/models/citysdk/request.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index 27b524f6..1717e9fe 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -47,7 +47,7 @@ def update private def filter(collection) - filter_include_inactive super(collection) + filter_include_inactive(super) end def group_params diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 79fd04e8..adda4531 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -59,7 +59,7 @@ def update private def filter(collection) - filter_include_inactive super(collection) + filter_include_inactive(super) end def user_params(password_only: false) diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index ba400867..a8860676 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -13,6 +13,6 @@ def mail(options = {}) (options.delete(:interpolation) || {}).each do |target, values| options[target] = I18n.interpolate(options[target], values) end - super(options) + super end end diff --git a/app/models/citysdk/request.rb b/app/models/citysdk/request.rb index 781ae600..ea0d0aec 100644 --- a/app/models/citysdk/request.rb +++ b/app/models/citysdk/request.rb @@ -25,7 +25,7 @@ def self.authorized(tips:) end def assign_attributes(attributes) - super(attributes) + super set_position_from_attributes end