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 +2 -0
- data/lib/classy-inheritance.rb +7 -1
- data/lib/classy-inheritance/version.rb +1 -1
- data/website/index.html +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/lib/classy-inheritance.rb
CHANGED
@@ -82,7 +82,13 @@ module Stonean
|
|
82
82
|
eval("self.#{model_sym}.#{polymorphic_name}_id = self.id")
|
83
83
|
end
|
84
84
|
|
85
|
-
|
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
|
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.
|
36
|
+
<a href="http://rubyforge.org/projects/classyinherit" class="numbers">0.4.2</a>
|
37
37
|
</div>
|
38
38
|
<p><i>“You stay classy, inheritance” – 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.
|
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-
|
12
|
+
date: 2008-06-24 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|