basecamp / marginalia

Attach comments to ActiveRecord's SQL queries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Initializes db connection during `rake assets:precompile` in rails 4

bcherry opened this issue · comments

It looks like this gem will cause an initialization of the database connection during it's require phase, which makes rake assets:precompile fail when run on a host without a database configuration. Rails 4 removed the intialize_on_precompile configuration, so it's important that this gem not trigger connection during initialization. For now, we can work around with environment variables but it would be good to get this fixed!

This was fixed by #42, which was released in v1.2.0.

thanks @eugeneius for noting that.. Will close the issue, please let me know if it is still a problem.