```ruby
require "active_record"
require "shibaraku/active_record_ext"

module Shibaraku
end

ActiveRecord::Base.include(Shibaraku::ActiveRecordExt)
```

Use ActiveSupport lazy load hook to initialize ActiveRecord
user
```ruby
require "active_record"
require "shibaraku/active_record_ext"

module Shibaraku
end

ActiveSupport.on_load :active_record do
  ActiveRecord::Base.include(Shibaraku::ActiveRecordExt)
end
```
assistant