acts_as_organizable 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -72,10 +72,13 @@ module ActsAsOrganizable
72
72
  end
73
73
 
74
74
  def save_with_tags(tag_owner = nil)
75
- self.save # save the parent object first
76
- tag_kinds.each do |tag_kind|
77
- delete_unused_tags(tag_kind)
78
- create_taggings(tag_kind, tag_owner)
75
+ if self.save # save the parent object first
76
+ tag_kinds.each do |tag_kind|
77
+ delete_unused_tags(tag_kind)
78
+ create_taggings(tag_kind, tag_owner)
79
+ end
80
+ else
81
+ return false
79
82
  end
80
83
  end
81
84
 
@@ -1,3 +1,3 @@
1
1
  module ActsAsOrganizable
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_organizable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mike Hansen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-28 00:00:00 Z
18
+ date: 2011-07-08 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: