```ruby
require 'artwork/version'
require 'artwork/configuration'
require 'artwork/model'
require 'artwork/view'
require 'artwork/controller'
require 'artwork/engine' if Rails.const_defined?(:Engine)

module Artwork
  extend Configuration

  def self.root_path
    File.dirname(__FILE__)
  end
end
```

Allow Artwork to be required without loading Rails
user
```ruby
require 'artwork/version'
require 'artwork/configuration'
require 'artwork/model'
require 'artwork/view'
require 'artwork/controller'
require 'artwork/engine' if Object.const_defined?(:Rails) and Rails.const_defined?(:Engine)

module Artwork
  extend Configuration

  def self.root_path
    File.dirname(__FILE__)
  end
end
```
assistant