From 4e6505e26cf398591247bd3e7137e10f955ba18f Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Mon, 2 Apr 2012 13:37:57 -0500 Subject: [PATCH] nil layout should fallback to application --- lib/pjax.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pjax.rb b/lib/pjax.rb index 7d95289..2b8ba16 100644 --- a/lib/pjax.rb +++ b/lib/pjax.rb @@ -2,7 +2,7 @@ module Pjax extend ActiveSupport::Concern included do - layout proc { |c| pjax_request? ? pjax_layout : 'application' } + layout proc { |c| pjax_request? ? pjax_layout : nil } helper_method :pjax_request? before_filter :strip_pjax_param, :if => :pjax_request?