allow turning *off* Rails 3 via env var
Change-Id: Ie98f6ecbbe5abc5680bac4ea75e47dbe8e2d8e2c Reviewed-on: https://gerrit.instructure.com/31790 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: James Williams <jamesw@instructure.com> Product-Review: Cody Cutrer <cody@instructure.com> QA-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
parent
17d1573674
commit
55474d94eb
|
@ -1,4 +1,8 @@
|
|||
# You can enable the not-yet-complete Rails3 support by either defining a
|
||||
# CANVAS_RAILS3 env var, or create an empty RAILS3 file in the canvas config dir
|
||||
CANVAS_RAILS3 = !!ENV['CANVAS_RAILS3'] || File.exist?(File.expand_path("../RAILS3", __FILE__))
|
||||
if ENV['CANVAS_RAILS3']
|
||||
CANVAS_RAILS3 = ENV['CANVAS_RAILS3'] != '0'
|
||||
else
|
||||
CANVAS_RAILS3 = File.exist?(File.expand_path("../RAILS3", __FILE__))
|
||||
end
|
||||
CANVAS_RAILS2 = !CANVAS_RAILS3
|
||||
|
|
Loading…
Reference in New Issue