diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-07-16 18:11:03 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-07-17 14:08:32 +0900 |
commit | 4183d5dfa1d6d651232a4db44a1fcf71d220af4e (patch) | |
tree | e84e97bc3516380d2cb679d59b5706b00f52b33b /activesupport/lib/active_support/inflector | |
parent | 47eadb68bfcae1641b019e07e051aa39420685fb (diff) | |
download | rails-4183d5dfa1d6d651232a4db44a1fcf71d220af4e.tar.gz rails-4183d5dfa1d6d651232a4db44a1fcf71d220af4e.tar.bz2 rails-4183d5dfa1d6d651232a4db44a1fcf71d220af4e.zip |
Enable `Layout/FirstParameterIndentation` cop
We have some indentation cops. But now there is a little inconsistent
params indentations. Enable `Layout/FirstParameterIndentation` cop to
prevent newly inconsistent indentation added and auto-correct to
existing violations.
Diffstat (limited to 'activesupport/lib/active_support/inflector')
-rw-r--r-- | activesupport/lib/active_support/inflector/transliterate.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/inflector/transliterate.rb b/activesupport/lib/active_support/inflector/transliterate.rb index 246fe7a916..aa7b21734e 100644 --- a/activesupport/lib/active_support/inflector/transliterate.rb +++ b/activesupport/lib/active_support/inflector/transliterate.rb @@ -61,9 +61,10 @@ module ActiveSupport def transliterate(string, replacement = "?".freeze) raise ArgumentError, "Can only transliterate strings. Received #{string.class.name}" unless string.is_a?(String) - I18n.transliterate(ActiveSupport::Multibyte::Unicode.normalize( - ActiveSupport::Multibyte::Unicode.tidy_bytes(string), :c), - replacement: replacement) + I18n.transliterate( + ActiveSupport::Multibyte::Unicode.normalize( + ActiveSupport::Multibyte::Unicode.tidy_bytes(string), :c), + replacement: replacement) end # Replaces special characters in a string so that it may be used as part of |