piggybak 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
@@ -35,6 +35,11 @@ module Piggybak
35
35
  end
36
36
 
37
37
  def preprocess_sellable
38
+ if self.sellable_id.nil?
39
+ self.errors.add(:sellable_id, "Sellable can't be blank")
40
+ return
41
+ end
42
+
38
43
  sellable = Piggybak::Sellable.find(self.sellable_id)
39
44
 
40
45
  return if sellable.nil?
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "piggybak"
8
- s.version = "0.6.1"
8
+ s.version = "0.6.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Steph Skardal", "Brian Buchalter"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piggybak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -507,7 +507,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
507
507
  version: '0'
508
508
  segments:
509
509
  - 0
510
- hash: 3557691372940073314
510
+ hash: 2912208267601195271
511
511
  required_rubygems_version: !ruby/object:Gem::Requirement
512
512
  none: false
513
513
  requirements: