```ruby
require 'window_rails/version'

if(defined?(Rails))
  require File.join(File.dirname(__FILE__), '..', 'init')
end
```

Load the engine if we are in Rails
user
```ruby
require 'window_rails/version'

if(defined?(Rails))
  require 'window_rails/engine'
end
```
assistant