ninja-model 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ninja_model/marshalling.rb +3 -3
- data/lib/ninja_model/version.rb +1 -1
- metadata +4 -4
@@ -24,10 +24,10 @@ module NinjaModel
|
|
24
24
|
|
25
25
|
def marshal_load(data)
|
26
26
|
h = ActiveSupport::JSON.decode(data)
|
27
|
-
@attributes = {}
|
28
27
|
h.each do |k, v|
|
29
|
-
|
30
|
-
|
28
|
+
NinjaModel.logger.debug("k: #{k.to_s}")
|
29
|
+
if k.to_s.eql?('attributes')
|
30
|
+
@attributes = v
|
31
31
|
else
|
32
32
|
instance_variable_set(k, v)
|
33
33
|
end
|
data/lib/ninja_model/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ninja-model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
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: 2013-08-
|
12
|
+
date: 2013-08-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -284,7 +284,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
284
284
|
version: '0'
|
285
285
|
segments:
|
286
286
|
- 0
|
287
|
-
hash:
|
287
|
+
hash: -525726385
|
288
288
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
289
289
|
none: false
|
290
290
|
requirements:
|
@@ -293,7 +293,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
293
293
|
version: '0'
|
294
294
|
segments:
|
295
295
|
- 0
|
296
|
-
hash:
|
296
|
+
hash: -525726385
|
297
297
|
requirements: []
|
298
298
|
rubyforge_project: ninja-model
|
299
299
|
rubygems_version: 1.8.24
|