Skip to content
Browse files

Make pjax_request? accessible as a helper method

  • Loading branch information...
1 parent ad9aaeb commit 9730068753f18fb10f012e51e39ef2fb07fed452 @dhh dhh committed Jul 19, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 lib/pjax.rb
  2. +1 −1 pjax_rails.gemspec
View
1 lib/pjax.rb
@@ -3,6 +3,7 @@ module Pjax
included do
layout ->(c) { pjax_request? ? false : 'application' }
+ helper_method :pjax_request?
end
private
View
2 pjax_rails.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'pjax_rails'
- s.version = '0.1.6'
+ s.version = '0.1.7'
s.author = 'David Heinemeier Hansson (PJAX by Chris Wanstrath)'
s.email = 'david@loudthinking.com'
s.summary = 'PJAX integration for Rails 3.1+'

0 comments on commit 9730068

Please sign in to comment.
Something went wrong with that request. Please try again.