diff --git a/lib/rollbar/rake.rb b/lib/rollbar/rake.rb index 0c580d85..7c5d1d39 100644 --- a/lib/rollbar/rake.rb +++ b/lib/rollbar/rake.rb @@ -28,8 +28,8 @@ def self.patch? def self.rake_version if Object.const_defined?('RAKEVERSION') return RAKEVERSION - elsif Rake.const_defined?('VERSION') - return Rake::VERSION + elsif ::Rake.const_defined?('VERSION') + return ::Rake::VERSION end end end