Make sass property depend on txt file or env var
This commit is contained in:
committed by
Jorge Manrubia
parent
e1e9a01720
commit
6134407f5e
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user