Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Do not set layout automatically

  • Loading branch information...
commit eb15f44e0a1997e443f30a6f385b6ccfc1eb6285 1 parent 6d9d6c2
@pehlert authored
Showing with 0 additions and 5 deletions.
  1. +0 −5 lib/pjax.rb
View
5 lib/pjax.rb
@@ -2,7 +2,6 @@ module Pjax
extend ActiveSupport::Concern
included do
- layout proc { |c| pjax_request? ? pjax_layout : 'application' }
helper_method :pjax_request?
rescue_from Pjax::Unsupported, :with => :pjax_unsupported
@@ -19,10 +18,6 @@ def pjax_request?
env['HTTP_X_PJAX'].present?
end
- def pjax_layout
- false
- end
-
def pjax_container
return unless pjax_request?
request.headers['X-PJAX-Container']
Please sign in to comment.
Something went wrong with that request. Please try again.