diff --git a/Gemfile.lock b/Gemfile.lock index 8f0be33..419ff46 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -327,7 +327,7 @@ GEM rubocop (~> 1.33) rubocop-graphql (1.3.0) rubocop (>= 0.87, < 2) - rubocop-performance (1.18.0) + rubocop-performance (1.19.1) rubocop (>= 1.7.0, < 2.0) rubocop-ast (>= 0.4.0) rubocop-rails (2.21.2) diff --git a/app/controllers/api/users_controller.rb b/app/controllers/api/users_controller.rb index 59b8ee0..7622a59 100644 --- a/app/controllers/api/users_controller.rb +++ b/app/controllers/api/users_controller.rb @@ -61,6 +61,6 @@ def user_params end def tags_params - params['tags'].to_s.split(',').map(&:strip).map(&:downcase).compact_blank + params['tags'].to_s.split(',').map { |t| t.strip.downcase }.compact_blank end end diff --git a/app/graphql/mutations/update_user.rb b/app/graphql/mutations/update_user.rb index 091d33e..ad233f8 100644 --- a/app/graphql/mutations/update_user.rb +++ b/app/graphql/mutations/update_user.rb @@ -45,7 +45,7 @@ def mass_assign_attributes(attributes) end def tags_attributes(attributes) - attributes[:tags].to_s.split(',').map(&:strip).map(&:downcase).compact_blank + attributes[:tags].to_s.split(',').map { |t| t.strip.downcase }.compact_blank end def user(ident)