influitive / apartment

Database multi-tenancy for Rack (and Rails) applications
2.66k stars 464 forks source link

Don't initialize tenant when running rails webpacker:compile #608

Closed brett-anderson closed 3 years ago

brett-anderson commented 5 years ago

This skips the config.to_prepare block when running bin/rails wepacker:compile.

brett-anderson commented 5 years ago

This PR is to allow webpacker:compile to run successfully without a database connection. It is similar to the line above it which skips the init block if running assets:precompile or assets:clean.