OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
t#29693:test layout flag move to magic number
[pettanr/pettanr.git]
/
app
/
controllers
/
system_controller.rb
diff --git
a/app/controllers/system_controller.rb
b/app/controllers/system_controller.rb
index
20ac6e4
..
d8cbb0b
100644
(file)
--- a/
app/controllers/system_controller.rb
+++ b/
app/controllers/system_controller.rb
@@
-58,14
+58,14
@@
class SystemController < ApplicationController
end
def production_layout
end
def production_layout
-
Pettanr::Application.test_layout
= false
+
MagicNumber['test_layout']
= false
respond_to do |format|
format.html { render text: 'production', status: 200 }
end
end
def test_layout
respond_to do |format|
format.html { render text: 'production', status: 200 }
end
end
def test_layout
-
Pettanr::Application.test_layout
= 'test'
+
MagicNumber['test_layout']
= 'test'
respond_to do |format|
format.html { render text: 'test', status: 200 }
end
respond_to do |format|
format.html { render text: 'test', status: 200 }
end