We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a01a616 + c01d738 commit aa663a7Copy full SHA for aa663a7
lib/litestack/railtie.rb
@@ -3,8 +3,10 @@
3
module Litestack
4
class Railtie < ::Rails::Railtie
5
initializer :disable_production_sqlite_warning do |app|
6
- # The whole point of this gem is to use sqlite3 in production.
7
- app.config.active_record.sqlite3_production_warning = false
+ if config.active_record.key?(:sqlite3_production_warning)
+ # The whole point of this gem is to use sqlite3 in production.
8
+ app.config.active_record.sqlite3_production_warning = false
9
+ end
10
end
11
12
0 commit comments