shop_bunny 0.7.4 → 0.7.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,8 @@ module ShopBunny
11
11
  end
12
12
 
13
13
  def add_item
14
- @cart.add_item(@item) if @item
14
+ quantity = params[:quantity].to_i || 1
15
+ @cart.add_item(@item, :quantity => quantity) if @item
15
16
  respond_with @cart do |format|
16
17
  format.html { redirect_to :action => :show }
17
18
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shop_bunny
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 101
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
9
  - 4
10
- version: 0.7.4
10
+ - 1
11
+ version: 0.7.4.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - kopfmaschine.com
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-09-29 00:00:00 +02:00
19
+ date: 2010-10-12 00:00:00 +02:00
19
20
  default_executable:
20
21
  dependencies: []
21
22