caboose-cms 0.9.25 → 0.9.26

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: 1c76cc4d051c4c5728a3de82a4bd26538dc2d543
4
- data.tar.gz: 5730fc257cb7dc80e2992165264cb9609666a8a6
3
+ metadata.gz: 6d61cd61f33861af8f6d6629ed21732da3b9f845
4
+ data.tar.gz: ac17118766ee2a78a539c7d44639766d4cbcc71a
5
5
  SHA512:
6
- metadata.gz: f66f9175c5e7d4519e966884621f20c5a4a5a919acd1b0a4f61dd16d4ab2e6c516bb44c4f106da56b543b1c369286bb2d2a26efb3fcf2e41aa91f5c23a8161b2
7
- data.tar.gz: 1f960d2ed8ce16d6233c67dad36f79f452b037ed02c4b4f83b9c31282b5972440ec4ce73ec574ff0e37793b47b05f08e66b65b02dcf123d08337fd77e75477d4
6
+ metadata.gz: 8c1dc5d7b14673ce914d9053ad1a43de195c619c709e156ac867d4744eb6ca81fc1b91eb19550831cc8583730e7317fa0266c10c21f32785e642d5443edb0d4a
7
+ data.tar.gz: 24d22a58ec6af37d01ec3c3c1f8ade46113cecc94f0adc9a6f0b30031f44c5b193c4af17169cfa5317d928fc4a715f771d304dfa4c89603276d8addefb82e9f8
@@ -215,7 +215,7 @@ module Caboose
215
215
  if v.nil? || v.status == 'Deleted'
216
216
  render :json => { :error => 'One or more of the products you are purchasing are no longer available.' }
217
217
  return
218
- elsif !vl.qty_within_range( vl.current_value + li.quantity )
218
+ elsif vl && !vl.qty_within_range( vl.current_value + li.quantity )
219
219
  render :json => { :error => 'You have exceeded the limit you are allowed to purchase.' }
220
220
  return
221
221
  end
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.25'
2
+ VERSION = '0.9.26'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.25
4
+ version: 0.9.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry