```ruby
require 'active_support/dependencies/autoload'

module SexyScopes
  %w( Version VERSION ).each do |constant|
    autoload constant, 'sexy_scopes/version'
  end
  
  extend ActiveSupport::Autoload
  
  autoload :Wrappers
end

if defined? Rails::Railtie
  require 'sexy_scopes/railtie'
else
  require 'sexy_scopes/active_record'
end
```

Use `require` instead of `autoload` for version.rb
user
```ruby
require 'sexy_scopes/version'
require 'active_support/dependencies/autoload'

module SexyScopes
  extend ActiveSupport::Autoload
  
  autoload :Wrappers
end

if defined? Rails::Railtie
  require 'sexy_scopes/railtie'
else
  require 'sexy_scopes/active_record'
end
```
assistant