pauldowman / better_logging

(Old/dead) A Rails plugin that improves the log format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fails with "uninitialized constant... ActiveRecord" when using Rails without a database

bobics opened this issue · comments

To use Rails without a database, you must remove the Active Record framework -- this is noted in the default environment.rb file:

config.frameworks -= [ :active_record ]

If you disable Active Record, the better_logging plugin fails since it uses the ActiveRecord::Base.colorize_logging parameter. The error displayed is:

Error during failsafe response: uninitialized constant ActiveSupport::BufferedLogger::ActiveRecord

As a workaround, I commented out the colorizing section.

Fixed in 06d3cb0. Let me know if you still have issues.