aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/cache/file_store.rb
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2016-12-17 17:13:50 +0900
committerAkira Matsuda <ronnie@dio.jp>2016-12-24 11:39:05 +0900
commita43e7706be907e62fad4ffe5f80ab9532c51dbca (patch)
treef0854bd80e7ab3bc06a55e55929ef50a8330df8a /activesupport/lib/active_support/cache/file_store.rb
parent4db99eb87b98f3810e782fd745b0474467f9ce66 (diff)
downloadrails-a43e7706be907e62fad4ffe5f80ab9532c51dbca.tar.gz
rails-a43e7706be907e62fad4ffe5f80ab9532c51dbca.tar.bz2
rails-a43e7706be907e62fad4ffe5f80ab9532c51dbca.zip
Privatize unneededly protected methods in Active Support
Diffstat (limited to 'activesupport/lib/active_support/cache/file_store.rb')
-rw-r--r--activesupport/lib/active_support/cache/file_store.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/cache/file_store.rb b/activesupport/lib/active_support/cache/file_store.rb
index 6b7d0a230d..d5c8585816 100644
--- a/activesupport/lib/active_support/cache/file_store.rb
+++ b/activesupport/lib/active_support/cache/file_store.rb
@@ -66,7 +66,7 @@ module ActiveSupport
end
end
- protected
+ private
def read_entry(key, options)
if File.exist?(key)
@@ -98,7 +98,6 @@ module ActiveSupport
end
end
- private
# Lock a file for a block so only one process can modify it at a time.
def lock_file(file_name, &block)
if File.exist?(file_name)