minimum_viable_product 0.5.4 → 0.5.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: 31694a9a5ef88dc2cd552cd900086ca2b54715ac
4
- data.tar.gz: 5a6ad81bead00f44cba0b4c764da1ad603154549
3
+ metadata.gz: 88bd284683b9bfa7de57a31f01099c4bdde86432
4
+ data.tar.gz: 1471017d91b5e8b9598fd044f50cb90bc9eabb8f
5
5
  SHA512:
6
- metadata.gz: f7b2546346fe5e7479990bbb2baf29208407d19e93e4578344950a777d260e18881593d1a53f5009d071827ed65c1d4f965297272048d0388744522041fdd3aa
7
- data.tar.gz: 1d0690d288722be758cde5bd6b5dd7a503ea5a4b08454b8df6bc0816563a762bfbd4420fbc96d1b04845e3e915fc5c7883e50960e0e6880b97eaf8eb5b789cec
6
+ metadata.gz: e13477891566ac12615307228912f05764b9f295e8e56bc3772b0a22e208ada23ca271a1ab5e4530d06a01c0ffec56e78a454ee5f07fa37d14c03cbfe58580fc
7
+ data.tar.gz: dfb8524a0a222fa618975794bad11233fb11e78d838e77f9c7d7539c614ce1e833875d988b82eea008070f5d464278da70bb47db5d4919057a49c14ae7638b9b
@@ -34,7 +34,7 @@ module MinimumViableProduct
34
34
 
35
35
  # http://blog.laaz.org/tech/2012/12/27/rails-redirect_back_or_default/
36
36
  def redirect_back_or_default(default = root_url)
37
- redirect_to(session.delete(:return_to) || request.referer || default)
37
+ redirect_to(session.delete(:return_to) || default || request.referer)
38
38
  end
39
39
  alias_method :redirect_to_back_or_default, :redirect_back_or_default
40
40
  end
@@ -1,3 +1,3 @@
1
1
  module MinimumViableProduct
2
- VERSION = "0.5.4"
2
+ VERSION = "0.5.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimum_viable_product
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Hunter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-28 00:00:00.000000000 Z
11
+ date: 2016-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: analytics-ruby