ajaxify_rails 0.8.4 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63e7db7d819e54af9c810baaeba5afdfe725fc6a
4
- data.tar.gz: 0641a647826fbdf3a749cdb2edf6d33ee0deac60
3
+ metadata.gz: 003a87a85d738faa2136e56ede3595c2fd82f1ed
4
+ data.tar.gz: 5fb1b3dba67cb9d46812dbbf5f5a4e59b1c1aeed
5
5
  SHA512:
6
- metadata.gz: d54664c2ad77a04355ae3eb81eb799e395c6424d7b1278b0a5eb7be115b7b821930e967a11a32f290f1d2e429779d692ba50c82f1ab422c225a91a8dc0d098eb
7
- data.tar.gz: e94011fce77b54a72a3e2cfe454618f62c682db571ecd2ed04827d493ab18d9f344250e91f6c1bbfea978584e2189a3d377cae6d0df837fabe62b6a53971ba64
6
+ metadata.gz: e24f2baf7d1230ffcf866b640ba87eb1f4b6b271cf0044bb74a24cd9b94f5294de6819be46541111f5b8a03b3f831b8261a43893f014cc77db92d19c5109b601
7
+ data.tar.gz: 62e222d3398aa1a1e4c8ce2b96a2323f23080ceef9df1ae86e6bf5f08688459d708b983685628bc1cb25f2747a5cb0526ed9a129857f8f24e9d1a264fc931552
@@ -16,6 +16,10 @@ module ActionControllerAdditions
16
16
  ''
17
17
  end
18
18
 
19
+ def ajaxify_after_render_extra_content
20
+ ''
21
+ end
22
+
19
23
 
20
24
  def ajaxify_add_meta_tags
21
25
  ajaxify_add_meta_tag( ajaxify_assets_digest_meta_tag )
@@ -53,13 +57,16 @@ module ActionControllerAdditions
53
57
 
54
58
  super args
55
59
 
60
+ after_render_extra_content = ajaxify_after_render_extra_content
61
+
62
+
56
63
  # Store current path for redirect url changes. Also used to remove the ajaxify parameter that gets added to some auto generated urls
57
64
  # like e.g. pagination links see (ajaxify.js -> on_ajaxify_success())
58
65
  #
59
66
  current_url_tag = view_context.content_tag(:span, remove_ajaxify_param(request.fullpath),
60
67
  id: 'ajaxify_location')
61
68
 
62
- response_body[0] += view_context.content_tag(:div, current_url_tag + extra_content,
69
+ response_body[0] += view_context.content_tag(:div, current_url_tag + extra_content + after_render_extra_content,
63
70
  id: 'ajaxify_content', style: 'display:none',
64
71
  data: { page_title: page_title,
65
72
  flashes: flashes.to_json,
@@ -1,3 +1,3 @@
1
1
  module AjaxifyRails
2
- VERSION = "0.8.4"
2
+ VERSION = "0.8.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ajaxify_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nico Ritsche
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-31 00:00:00.000000000 Z
11
+ date: 2013-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails