Class: CantWait::CantWaitRailtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/cant_wait/cant_wait_railtie.rb

Overview

This class is a Railtie which adds an initializer to Rails

It reads the database configuration timeout, and only if the adapter is either PostgreSQL or PostGIS, sets its value as the statement_timeout.