ajaxify_rails 0.9.0 → 0.9.1

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: b1a3ad49573c7a399b12cb04c499f88049ba6fc8
4
- data.tar.gz: 0eb7e7b88fa8640641f2506689e9f02be6cd158f
3
+ metadata.gz: 9f3631334489da73e259d1c380e7fb6533066d5b
4
+ data.tar.gz: 770025f84fcddf8dac35980f24c129c6a33ee9c1
5
5
  SHA512:
6
- metadata.gz: 63f7a7bc08cc613c613b4b8428967a190b9897854b082c8d480a62c8ea16d762a066a5827d3572c3687976795ed05abce3423374daf498dbbfca950a3c21a1a1
7
- data.tar.gz: 8e8d67f7cfbacab0eb29fbd70889f45997fea431a9dc994f3d08b8c964a24c59e3965008bbc380bb6c365c94727d835aa51cbf1713d7b6c0382593de42d83dce
6
+ metadata.gz: de7b5706ed76a95bd1e7fc73252d820e16c4b7be206e7914369992016b2d9abdbe577bd7e79f19d877c3187232fb8e9161bfb17205ed1f3201440ad58681fa07
7
+ data.tar.gz: 8be251769d302161eae13410aed8134b2f6ebbda30b83a2fe3bf2f0746f1b633bd705a85ef65ce8a3c2293e5ee7a64164689ba49bf24b6f56053fca800ca4112
@@ -95,7 +95,9 @@ module ActionControllerAdditions
95
95
 
96
96
 
97
97
  def redirect_to(options = {}, response_status = {})
98
- request.referer.sub!('#/', '/') if request.referer # make redirect to back work for browsers without history api
98
+ if request.referer # make redirect to back work for browsers without history api
99
+ request.referer.sub!('/#/', '/').sub!('#/', '/')
100
+ end
99
101
 
100
102
  super
101
103
 
@@ -1,3 +1,3 @@
1
1
  module AjaxifyRails
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ajaxify_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nico Ritsche