CITIEsForRAILS 0.0.6 → 0.0.7
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/CITIEsForRAILS.gemspec +1 -1
- data/Rakefile +1 -1
- data/lib/citiesforrails/acts_as_cities.rb +1 -1
- metadata +2 -2
data/CITIEsForRAILS.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{CITIEsForRAILS}
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.7"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Laurent Buffat & Pierre-Emmanuel JOUVE"]
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('CITIEsForRAILS', '0.0.
|
5
|
+
Echoe.new('CITIEsForRAILS', '0.0.7') do |p|
|
6
6
|
p.description = "CITIEsForRAILS (Class Inheritance & Table Inheritance Embeddings For RAILS) is a solution that extends Single/Multiple/Class Table Inheritance. This solution is based on classical Ruby class inheritance, single table inheritance as well as DB views.
|
7
7
|
|
8
8
|
|
@@ -188,7 +188,7 @@ module Cities
|
|
188
188
|
self.id = herited.id
|
189
189
|
|
190
190
|
if(new_record?)
|
191
|
-
|
191
|
+
self.swap_new_record;#this is very important for multi saving without reloading, if it was not there it would imply several savings in DB....
|
192
192
|
end
|
193
193
|
|
194
194
|
sql = "UPDATE #{self.class.mother_class.table_name} SET #{self.class.inheritance_column} = '#{self.class.to_s}' WHERE id = #{self.id}"
|