caboose-store 0.0.38 → 0.0.39

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjYzYjI2MmYxNTBlYjQ3MmM3NGFkZDFiZDhiOTdhNTY1NWFkNTYxYg==
4
+ M2EzZjNiODZmYjdlNTdiYmVmY2RmNWI5M2I3MzZhMmMyOWQxODdmMg==
5
5
  data.tar.gz: !binary |-
6
- ZDUyYjMyZDVlYmNiYTYzMTUwNmJiNTI1NjhmODBjZDgyNTMwZjE3NA==
6
+ MGY2NWM1NGI0NWFiZGMwYjM1NmM2YTVjNzI5MTU1NGJiNmVhYjhkNQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OTQ5YWM4OTdlOTJlNzBlZjMyNTM0MWU1MjM0Y2RlYjA1YTQ5YjBlMTA0NzEw
10
- ZmNhZWQ3M2RiNzFlZDFiZDk1MDgxNjUxMWZjMjY3MTRlZDQ3MTFlYThjODVk
11
- NmU4MzIzZjFhYjg4NDM4ODI0NDI1NDRjMWFlZmY1NzEzZjc1Mjk=
9
+ YTczMTJlODdiZWJhNjMzNmJjNzEyMTY2Y2VkMmM3NzkyN2VhMDE3OWM0ZWJm
10
+ YjE0ZGMzNTM4MzlmYjFiODk1ZGM5ZDJkMDNlZjBiM2FhZTg4MDBhMTJjYTVi
11
+ YTI5ZmM4ZGYwYWE1ZTdlYzBjMmFmZGM0NzMyZDk0ODMxYjE4MTc=
12
12
  data.tar.gz: !binary |-
13
- NGEwNzM0ODVhNTE2ZTJmNjNjYTJkZjIwMDU3M2U1N2ViOWE0MjdhNzQ1NGZk
14
- YTJjMmJjMmE3YzJkOGFjNzc3Nzk2N2FjNWI0MmQwNmQ3MzM0YWFkYjZmNGYx
15
- M2I3YmQ1YmU4YjJjZTYyMzVkMDBmY2EyYTkxZjAzZjMwOTY0ODg=
13
+ ZWMxMzUxYWVjOWY2MTVmNTg4MTg0MDhlY2I4MjQzMTNmYjY4MTA2MWRkZTNl
14
+ NzQ2MThlYmU1YjU5OThhZDhkZDI1MDNkYzJlOGRkMmRlYWEzYzY3NjdkOTQ2
15
+ YWM2Yjc4OTc2MDUxYzI0OGU3MmJiZDc0YjE1ZGNmYzE0MDQwMzA=
@@ -14,7 +14,14 @@ module CabooseStore
14
14
 
15
15
  # GET /checkout/step-one
16
16
  def step_one
17
- redirect_to '/checkout/step-two' if logged_in?
17
+ if logged_in?
18
+ if @order.customer_id.nil?
19
+ @order.customer_id = logged_in_user.id
20
+ @order.save
21
+ end
22
+ redirect_to '/checkout/step-two'
23
+ return
24
+ end
18
25
  end
19
26
 
20
27
  # GET /checkout/step-two
@@ -1,3 +1,3 @@
1
1
  module CabooseStore
2
- VERSION = '0.0.38'
2
+ VERSION = '0.0.39'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.38
4
+ version: 0.0.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-10 00:00:00.000000000 Z
11
+ date: 2014-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caboose-cms