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: e211829d6c4b1d32cc37289942ee8d17446a5156
4
- data.tar.gz: 8c799d0ad9cb0c1283c999cb56e4a8e8907d914f
3
+ metadata.gz: af710edf99578878bacdcce95b3d827f5184b38a
4
+ data.tar.gz: f53b57430f9785bb9ac98883e812e0f05abb8f54
5
5
  SHA512:
6
- metadata.gz: 67ad4215200274f2c40314d3792131b30c71c2a9845f8ec175f9e772c83aaaab86618a697c9de7fcc1f56fef705a9b969b5352ebefd30e8757011e98073a2f2a
7
- data.tar.gz: e4fe122ff8901fe907f9b5dc057179770348d5d51e954c405e756fa3d7b75d07c606cb71e96381a6e9b58c1a030b13b385bb10c45ab85e0fd92b81a56f36f5f0
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 = Order.new(current_cart, current_user)
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '1.3.10'.freeze
2
+ VERSION = '1.3.11'.freeze
3
3
  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.10
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-13 00:00:00.000000000 Z
11
+ date: 2015-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails