Extract common method to configure bundle
This commit is contained in:
committed by
Jorge Manrubia
parent
5d32e40756
commit
fb9aa5dfac
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user