effective_orders 1.3.10 → 1.3.11
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af710edf99578878bacdcce95b3d827f5184b38a
|
4
|
+
data.tar.gz: f53b57430f9785bb9ac98883e812e0f05abb8f54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f387ac552ed74da717e4bc03fb49c925a3d23d62beb96926af315224fd3ba2495d030b2b3b7979680d6772a589ae94c11fb518c6b99a89a8eb1f89cf3616e7f
|
7
|
+
data.tar.gz: 71da5bf1a545577db61919b749674140178b9f85d777718eef190135437f80a06bf0248aca474ee1776d896a9062bab36298353549edc2bc59b1a35cbb0c3cbd
|
@@ -32,7 +32,7 @@ module Effective
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def create
|
35
|
-
@order
|
35
|
+
@order ||= Order.new(current_cart, current_user)
|
36
36
|
@order.attributes = order_params
|
37
37
|
@order.shipping_address = @order.billing_address if @order.shipping_address_same_as_billing?
|
38
38
|
|
@@ -59,7 +59,7 @@ module Effective
|
|
59
59
|
return
|
60
60
|
rescue => e
|
61
61
|
Rails.logger.info e.message
|
62
|
-
flash[:danger] = "An error has ocurred. Please try again. Message: #{e.message}"
|
62
|
+
flash.now[:danger] = "An error has ocurred. Please try again. Message: #{e.message}"
|
63
63
|
raise ActiveRecord::Rollback
|
64
64
|
end
|
65
65
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_orders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.11
|
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-07-
|
11
|
+
date: 2015-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|