classy-inheritance 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,5 @@
1
+ == 0.4.2 2008-06-24
2
+ * Fix: has_one only saves for a create, not update. added in save for update.
1
3
  == 0.4.1 2008-06-23
2
4
  * Fix: removed extra save call for polymorphic associations. rails handles the save on a has_one relationship
3
5
  == 0.4.0 2008-06-23
@@ -82,7 +82,13 @@ module Stonean
82
82
  eval("self.#{model_sym}.#{polymorphic_name}_id = self.id")
83
83
  end
84
84
 
85
- unless polymorphic_name
85
+ if polymorphic_name
86
+ eval <<-SAVEIT
87
+ unless self.#{model_sym}.new_record?
88
+ self.#{model_sym}.save
89
+ end
90
+ SAVEIT
91
+ else
86
92
  eval("self.#{model_sym}.save")
87
93
  end
88
94
  end
@@ -2,7 +2,7 @@ module ClassyInheritance #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 4
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/website/index.html CHANGED
@@ -33,7 +33,7 @@
33
33
  <h1>Classy Inheritance</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/classyinherit"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/classyinherit" class="numbers">0.4.1</a>
36
+ <a href="http://rubyforge.org/projects/classyinherit" class="numbers">0.4.2</a>
37
37
  </div>
38
38
  <p><i>&#8220;You stay classy, inheritance&#8221; &#8211; Gibson</i></p>
39
39
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: classy-inheritance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Stone
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-23 00:00:00 -04:00
12
+ date: 2008-06-24 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15