diff --git a/app/controllers/comfy/cms/content_controller.rb b/app/controllers/comfy/cms/content_controller.rb
index <HASH>..<HASH> 100644
--- a/app/controllers/comfy/cms/content_controller.rb
+++ b/app/controllers/comfy/cms/content_controller.rb
@@ -15,7 +15,7 @@ class Comfy::Cms::ContentController < Comfy::Cms::BaseController
       redirect_to @cms_page.target_page.url
     else
       respond_to do |format|
-        format.json { render json: @cms_page }
+        format.json { render json: @cms_page } unless ComfortableMexicanSofa.config.allow_irb
         format.all { render_page }
       end
     end
json api makes no sense if erb is allowed and not rendered