```ruby
require 'capistrano'
require 'capistrano/version'

if Capistrano.constants.include? :VERSION
  require 'opbeat/integration/capistrano2'
else
  require 'opbeat/integration/capistrano3'
end
```

Change weird Capistrano version check
user
```ruby
require 'capistrano'
require 'capistrano/version'

if Capistrano::VERSION.to_i <= 2
  require 'opbeat/integration/capistrano2'
else
  require 'opbeat/integration/capistrano3'
end
```
assistant