OSDN Git Service

t#29693:test layout flag move to magic number
[pettanr/pettanr.git] / app / controllers / system_controller.rb
index 20ac6e4..d8cbb0b 100644 (file)
@@ -58,14 +58,14 @@ class SystemController < ApplicationController
   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
-    Pettanr::Application.test_layout = 'test'
+    MagicNumber['test_layout'] = 'test'
     respond_to do |format|
       format.html { render text: 'test', status: 200 }
     end