mamechiwa 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mamechiwa.rb +2 -2
- data/lib/mamechiwa/version.rb +1 -1
- metadata +3 -2
data/lib/mamechiwa.rb
CHANGED
@@ -38,7 +38,7 @@ module Mamechiwa
|
|
38
38
|
define_method "#{field}=" do |value|
|
39
39
|
initialize_with_mame
|
40
40
|
|
41
|
-
|
41
|
+
if value.blank?
|
42
42
|
write_attribute("#{field}", "{}")
|
43
43
|
@mame_embedded.refresh if @mame_embedded
|
44
44
|
return
|
@@ -129,7 +129,7 @@ module Mamechiwa
|
|
129
129
|
self.old_set(attr.to_s, nil)
|
130
130
|
end
|
131
131
|
|
132
|
-
|
132
|
+
unless value.blank?
|
133
133
|
self.merge!(ActiveSupport::JSON.decode(value))
|
134
134
|
end
|
135
135
|
end
|
data/lib/mamechiwa/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -125,3 +125,4 @@ signing_key:
|
|
125
125
|
specification_version: 3
|
126
126
|
summary: hanako kawaii
|
127
127
|
test_files: []
|
128
|
+
has_rdoc:
|