mamechiwa 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mamechiwa/version.rb +1 -1
- data/lib/mamechiwa.rb +6 -0
- metadata +1 -1
data/lib/mamechiwa/version.rb
CHANGED
data/lib/mamechiwa.rb
CHANGED
@@ -38,6 +38,12 @@ module Mamechiwa
|
|
38
38
|
define_method "#{field}=" do |value|
|
39
39
|
initialize_with_mame
|
40
40
|
|
41
|
+
unless value
|
42
|
+
write_attribute("#{field}", "{}")
|
43
|
+
@mame_embedded.refresh if @mame_embedded
|
44
|
+
return
|
45
|
+
end
|
46
|
+
|
41
47
|
hash = value
|
42
48
|
hash = ActiveSupport::JSON.decode(value) if value.is_a?(String)
|
43
49
|
|