aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-11-30 21:14:12 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-11-30 21:14:12 +0900
commitaa9b0932ecf2b35794de3836a1abb2cab39650de (patch)
tree469cc5626ab01a8ba0b883ccf6cb1d997acdeaf4 /activesupport
parent5b75408e3226b43fab66558d173df7e97efbc240 (diff)
downloadrails-aa9b0932ecf2b35794de3836a1abb2cab39650de.tar.gz
rails-aa9b0932ecf2b35794de3836a1abb2cab39650de.tar.bz2
rails-aa9b0932ecf2b35794de3836a1abb2cab39650de.zip
Don't expose internal `clock_gettime_supported?` class method
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/notifications/instrumenter.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/notifications/instrumenter.rb b/activesupport/lib/active_support/notifications/instrumenter.rb
index a721187d2d..125c06f37a 100644
--- a/activesupport/lib/active_support/notifications/instrumenter.rb
+++ b/activesupport/lib/active_support/notifications/instrumenter.rb
@@ -56,8 +56,9 @@ module ActiveSupport
def self.clock_gettime_supported? # :nodoc:
defined?(Process::CLOCK_PROCESS_CPUTIME_ID) &&
- !Gem.win_platform?
+ !Gem.win_platform?
end
+ private_class_method :clock_gettime_supported?
def initialize(name, start, ending, transaction_id, payload)
@name = name