From 991230f37a532129cd37fa681f43c1a7232ab5e6 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 22 Oct 2019 11:30:29 +0000 Subject: [PATCH] code cleanup: rubocop: fix Layout/AccessModifierIndentation in app/models/setting.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18794 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 1 - app/models/setting.rb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index edaa71abe..18ae18f4a 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -23,7 +23,6 @@ Layout/AccessModifierIndentation: - 'app/controllers/timelog_controller.rb' - 'app/controllers/wiki_controller.rb' - 'app/models/role.rb' - - 'app/models/setting.rb' # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. diff --git a/app/models/setting.rb b/app/models/setting.rb index c9061bb3f..ec0bad0f2 100644 --- a/app/models/setting.rb +++ b/app/models/setting.rb @@ -302,7 +302,7 @@ class Setting < ActiveRecord::Base load_available_settings load_plugin_settings -private + private def force_utf8_strings(arg) if arg.is_a?(String)