klass_name_types 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/klass_name_type.rb +1 -1
- data/lib/klass_name_types.rb +6 -3
- data/lib/tasks/rubyforge_config.yml +1 -1
- metadata +2 -2
data/lib/klass_name_type.rb
CHANGED
data/lib/klass_name_types.rb
CHANGED
@@ -19,9 +19,12 @@ class << ActiveRecord::Base
|
|
19
19
|
end
|
20
20
|
|
21
21
|
unless m_flag
|
22
|
-
|
23
|
-
|
24
|
-
KlassNameType.
|
22
|
+
knt = KlassNameType.find_by_name(c_name)
|
23
|
+
unless knt
|
24
|
+
if KlassNameType.create(:name => c_name)
|
25
|
+
# puts "Created KlassNameType: #{c_name}"
|
26
|
+
KlassNameType.reload_constants!
|
27
|
+
end
|
25
28
|
end
|
26
29
|
end
|
27
30
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: klass_name_types
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2007-
|
6
|
+
version: 1.0.6
|
7
|
+
date: 2007-10-23 00:00:00 -04:00
|
8
8
|
summary: klass_name_types
|
9
9
|
require_paths:
|
10
10
|
- lib
|