diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-12-17 17:13:50 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-12-24 11:39:05 +0900 |
commit | a43e7706be907e62fad4ffe5f80ab9532c51dbca (patch) | |
tree | f0854bd80e7ab3bc06a55e55929ef50a8330df8a /activesupport/lib/active_support/xml_mini.rb | |
parent | 4db99eb87b98f3810e782fd745b0474467f9ce66 (diff) | |
download | rails-a43e7706be907e62fad4ffe5f80ab9532c51dbca.tar.gz rails-a43e7706be907e62fad4ffe5f80ab9532c51dbca.tar.bz2 rails-a43e7706be907e62fad4ffe5f80ab9532c51dbca.zip |
Privatize unneededly protected methods in Active Support
Diffstat (limited to 'activesupport/lib/active_support/xml_mini.rb')
-rw-r--r-- | activesupport/lib/active_support/xml_mini.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/xml_mini.rb b/activesupport/lib/active_support/xml_mini.rb index e3203ef076..ac6db6618d 100644 --- a/activesupport/lib/active_support/xml_mini.rb +++ b/activesupport/lib/active_support/xml_mini.rb @@ -159,7 +159,7 @@ module ActiveSupport key end - protected + private def _dasherize(key) # $2 must be a non-greedy regex for this to work @@ -168,7 +168,7 @@ module ActiveSupport end # TODO: Add support for other encodings - def _parse_binary(bin, entity) #:nodoc: + def _parse_binary(bin, entity) case entity["encoding"] when "base64" ::Base64.decode64(bin) @@ -185,8 +185,6 @@ module ActiveSupport f end - private - def current_thread_backend Thread.current[:xml_mini_backend] end |