```ruby
require 'asset_hash'
require 'rails'
module AssetHash
  class Railtie < Rails::Railtie
    rake_tasks do
      load "tasks/asset_hash.rake"
    end
  end
end```

Allow asset_hash to work with Rails 2.3.x.
user
```ruby
require 'asset_hash'
begin
  require 'rails'
  module AssetHash
    class Railtie < Rails::Railtie
      rake_tasks do
        load "tasks/asset_hash.rake"
      end
    end
  end
rescue LoadError
end
```
assistant