pjax_rails 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +2 -2
  2. data/lib/pjax.rb +1 -0
  3. data/pjax_rails.gemspec +1 -1
  4. metadata +2 -2
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  PJAX for Rails 3.1+
2
2
  ===================
3
3
 
4
- Integrate Chris Wanstrath's PJAX into Rails 3.1+ via the asset pipeline.
4
+ Integrate Chris Wanstrath's [PJAX](https://github.com/defunkt/jquery-pjax) into Rails 3.1+ via the asset pipeline.
5
5
 
6
6
  To activate, add this to your app/assets/javascripts/application.js (or whatever bundle you use):
7
7
 
@@ -22,7 +22,7 @@ The PJAX container has to be marked with data-pjax-container attribute, so for e
22
22
  <%= content_tag :h3, 'My site' %>
23
23
  <%= link_to 'About me', about_me_path %>
24
24
  <!-- The following link will not be pjax'd -->
25
- <%= link_to 'Google', 'http://google.com', :data-skip-pjax => true %>
25
+ <%= link_to 'Google', 'http://google.com', 'data-skip-pjax' => true %>
26
26
  </div>
27
27
  </body>
28
28
 
data/lib/pjax.rb CHANGED
@@ -3,6 +3,7 @@ module Pjax
3
3
 
4
4
  included do
5
5
  layout ->(c) { pjax_request? ? false : 'application' }
6
+ helper_method :pjax_request?
6
7
  end
7
8
 
8
9
  private
data/pjax_rails.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'pjax_rails'
3
- s.version = '0.1.6'
3
+ s.version = '0.1.7'
4
4
  s.author = 'David Heinemeier Hansson (PJAX by Chris Wanstrath)'
5
5
  s.email = 'david@loudthinking.com'
6
6
  s.summary = 'PJAX integration for Rails 3.1+'
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: pjax_rails
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.6
5
+ version: 0.1.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - David Heinemeier Hansson (PJAX by Chris Wanstrath)
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-26 00:00:00 -05:00
13
+ date: 2011-07-19 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency