diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-11-30 21:14:12 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-11-30 21:14:12 +0900 |
commit | aa9b0932ecf2b35794de3836a1abb2cab39650de (patch) | |
tree | 469cc5626ab01a8ba0b883ccf6cb1d997acdeaf4 /activesupport/lib/active_support | |
parent | 5b75408e3226b43fab66558d173df7e97efbc240 (diff) | |
download | rails-aa9b0932ecf2b35794de3836a1abb2cab39650de.tar.gz rails-aa9b0932ecf2b35794de3836a1abb2cab39650de.tar.bz2 rails-aa9b0932ecf2b35794de3836a1abb2cab39650de.zip |
Don't expose internal `clock_gettime_supported?` class method
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/notifications/instrumenter.rb | 3 |
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 |