aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-07-17 17:36:18 +0930
committerGitHub <noreply@github.com>2017-07-17 17:36:18 +0930
commitfbade51248ea48db87703ba7418badbd3ed85e36 (patch)
tree57b9b95a9eef8fa397532992fc277f31019d2815 /activesupport/lib
parenta0ff5b57246f0b1439dc9b5ffbdd880e70fab93d (diff)
parent4183d5dfa1d6d651232a4db44a1fcf71d220af4e (diff)
downloadrails-fbade51248ea48db87703ba7418badbd3ed85e36.tar.gz
rails-fbade51248ea48db87703ba7418badbd3ed85e36.tar.bz2
rails-fbade51248ea48db87703ba7418badbd3ed85e36.zip
Merge pull request #29810 from kamipo/add_first_parameter_indentation
Enable `Layout/FirstParameterIndentation` cop
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/inflector/transliterate.rb7
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