effective_regions 1.4.9 → 1.4.10

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: 48fb70e0d7cdb9c1ce13f42544f4160da90fd5a7
4
- data.tar.gz: ed1a7b9e6b1a057e7351d7d2ed9dfe72e1b1f7bf
3
+ metadata.gz: acdd2fcfad642191327de27d5a9fe4aadb40c641
4
+ data.tar.gz: 728f38432fd882671bac83c29d6e54ada4bb2249
5
5
  SHA512:
6
- metadata.gz: 2c55441fefc5c7bdd8b7742b852072cb2b52bd9a934171e9de6352879f17705509314bca4ef361adaa3802c86fc08ab32a6794b24b5eb6b9d668a96941694021
7
- data.tar.gz: 3981f28747a9bb1cedeeba81a19a524b06dc1580efd853d694a92cc58fbbbbc1d69322d66e0ff33efd868285a38d64790ea77f7fa3d0f00da54b93f5beee91a7
6
+ metadata.gz: 5be4ebc7c19fd7ae234b09f20ca51b80fa57a53cd2ed619e643096764819fccb90a6c6f43801be3cf6ae6de1e6efeadfb851161134d1425bc81f2aba9c2e0b3f
7
+ data.tar.gz: cb1d4675193faf95635840dc263b5405c062185a5fbf6d10487366d4f01d8b6afd1609b8ebac59f42db75fb90dc8f3445a7c3c781128bb7e903ab3a7e0f86921
@@ -14,7 +14,9 @@ module Effective
14
14
  cookies['effective_regions_editting'] = {:value => params[:exit].presence || request.referrer, :path => '/'}
15
15
 
16
16
  # TODO: turn this into a cookie or something better.
17
- redirect_to request.url.gsub('/edit', '') + '?edit=true'
17
+ uri = URI.parse(request.url.sub('/edit', ''))
18
+ uri.query = [uri.query, "edit=true"].compact.join('&')
19
+ redirect_to uri.to_s
18
20
  end
19
21
 
20
22
  def update
@@ -1,3 +1,3 @@
1
1
  module EffectiveRegions
2
- VERSION = '1.4.9'.freeze
2
+ VERSION = '1.4.10'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_regions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.9
4
+ version: 1.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-26 00:00:00.000000000 Z
11
+ date: 2015-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails