Currently, the gem is loaded right away and requires active_record. When this happens, the database configuration is required even to run basic tasks like assets:precompile on a build host, which is sub-optimal. Lazy loading active record is the correct thing to do for gems referencing ActiveRecord.
Currently, the gem is loaded right away and requires active_record. When this happens, the database configuration is required even to run basic tasks like assets:precompile on a build host, which is sub-optimal. Lazy loading active record is the correct thing to do for gems referencing ActiveRecord.