haz_enum 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/haz_enum.gemspec +1 -1
- data/lib/haz_enum/set.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.2
|
data/haz_enum.gemspec
CHANGED
data/lib/haz_enum/set.rb
CHANGED
@@ -11,7 +11,7 @@ module HazEnum
|
|
11
11
|
before_save "convert_#{set_name}_to_#{field_type}"
|
12
12
|
|
13
13
|
define_method("#{set_name}") do
|
14
|
-
instance_variable_get("@#{set_name}") || "initialize_#{set_name}_from_#{field_type}"
|
14
|
+
instance_variable_get("@#{set_name}") || send("initialize_#{set_name}_from_#{field_type}")
|
15
15
|
end
|
16
16
|
|
17
17
|
define_method("#{set_name}=") do |value|
|