Make sass property depend on txt file or env var

This commit is contained in:
Jorge Manrubia
2025-11-22 19:08:23 +01:00
committed by Jorge Manrubia
parent e1e9a01720
commit 6134407f5e
3 changed files with 6 additions and 13 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
module Fizzy
def self.saas?
defined?(Fizzy::Saas::Engine)
return @saas if defined?(@saas)
@saas = !!(ENV["SAAS"] || File.exist?(File.expand_path("../../tmp/saas.txt", __dir__)))
end
end