mamechiwa 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Mamechiwa
2
2
  module Version
3
- STRING = "0.0.7"
3
+ STRING = "0.0.8"
4
4
  end
5
5
  end
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mamechiwa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: