Extract common method to configure bundle

This commit is contained in:
Jorge Manrubia
2025-11-23 05:54:49 +01:00
committed by Jorge Manrubia
parent 5d32e40756
commit fb9aa5dfac
3 changed files with 8 additions and 7 deletions
+6
View File
@@ -8,6 +8,12 @@ module Fizzy
def db_adapter
@db_adapter ||= DbAdapter.new ENV.fetch("DATABASE_ADAPTER", saas? ? "mysql" : "sqlite")
end
def configure_bundle
if saas?
ENV["BUNDLE_WITH"] = [ENV["BUNDLE_WITH"], "saas"].compact.join(",")
end
end
end
class DbAdapter