ajaxify_rails 0.9.1 → 0.9.2

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: 9f3631334489da73e259d1c380e7fb6533066d5b
4
- data.tar.gz: 770025f84fcddf8dac35980f24c129c6a33ee9c1
3
+ metadata.gz: fce3c3696ff1d1c543390f2916755a4349caff8b
4
+ data.tar.gz: ac2902f259d745682f43f896d642893469579467
5
5
  SHA512:
6
- metadata.gz: de7b5706ed76a95bd1e7fc73252d820e16c4b7be206e7914369992016b2d9abdbe577bd7e79f19d877c3187232fb8e9161bfb17205ed1f3201440ad58681fa07
7
- data.tar.gz: 8be251769d302161eae13410aed8134b2f6ebbda30b83a2fe3bf2f0746f1b633bd705a85ef65ce8a3c2293e5ee7a64164689ba49bf24b6f56053fca800ca4112
6
+ metadata.gz: 7b7d6ca537d5eac8fbc1b276e4279024000126bdfc73c853cec4b080be79e69c76d2d54d5b16333f33ea6c51f022321cd9e681e6569e4fda6a963e32d6c93c40
7
+ data.tar.gz: 515702d5e892b8609e716ea34526a4226a50149d5d0dddceac6e3ccf39ba3294d0b396cceb43929bef2a57ff443695567567e0e40f8040642248a6c73016cd9a
@@ -96,7 +96,7 @@ module ActionControllerAdditions
96
96
 
97
97
  def redirect_to(options = {}, response_status = {})
98
98
  if request.referer # make redirect to back work for browsers without history api
99
- request.referer.sub!('/#/', '/').sub!('#/', '/')
99
+ request.referer.sub!('#/', '/')
100
100
  end
101
101
 
102
102
  super
@@ -1,3 +1,3 @@
1
1
  module AjaxifyRails
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
@@ -261,7 +261,7 @@ show_flashes = (flashes) ->
261
261
  on_hash_change = ->
262
262
  url = window.location.hash.replace(/#/, "")
263
263
 
264
- if match = window.location.pathname.match(base_path_regexp())
264
+ if base_paths and base_paths.length > 0 and match = window.location.pathname.match(base_path_regexp())
265
265
  url = match[0] + url
266
266
 
267
267
  url = '/' if url == ''
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.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nico Ritsche