```ruby
require 'bulldog'

ActiveRecord::Base.send :include, Bulldog::HasAttachment
ActiveRecord::Base.send :include, Bulldog::Validations

Bulldog.default_url_template = "/assets/:class/:id.:style.:extension"
```

Set Bulldog.logger to Rails.logger under Rails.
user
```ruby
require 'bulldog'

ActiveRecord::Base.send :include, Bulldog::HasAttachment
ActiveRecord::Base.send :include, Bulldog::Validations

Bulldog.default_url_template = "/assets/:class/:id.:style.:extension"

if defined?(Rails)
  Bulldog.logger = Rails.logger
end
```
assistant