classy-inheritance 0.4.0 → 0.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.
data/History.txt CHANGED
@@ -1,3 +1,5 @@
1
+ == 0.4.1 2008-06-23
2
+ * Fix: removed extra save call for polymorphic associations. rails handles the save on a has_one relationship
1
3
  == 0.4.0 2008-06-23
2
4
  * Add: support for other options such as :dependent and :class_name
3
5
  == 0.3.0 2008-06-12
@@ -82,7 +82,9 @@ module Stonean
82
82
  eval("self.#{model_sym}.#{polymorphic_name}_id = self.id")
83
83
  end
84
84
 
85
- eval("self.#{model_sym}.save")
85
+ unless polymorphic_name
86
+ eval("self.#{model_sym}.save")
87
+ end
86
88
  end
87
89
 
88
90
  before_save "save_requisite_#{model_sym}".to_sym
@@ -2,7 +2,7 @@ module ClassyInheritance #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 4
5
- TINY = 0
5
+ TINY = 1
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.3.0</a>
36
+ <a href="http://rubyforge.org/projects/classyinherit" class="numbers">0.4.1</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.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Stone