reactive-record 0.7.40 → 0.7.41

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4bb0f789a2d04f7a3256763e9f6df888a030bd36
4
- data.tar.gz: 4192db45d77b75734e1b1be6280144c06d94e510
3
+ metadata.gz: 8204cd5f1b74a0cee310cdb8400be3cab0a2d14b
4
+ data.tar.gz: 9848560e9cb3a3d6462086d807c22f6130a6946b
5
5
  SHA512:
6
- metadata.gz: 2d1b9081a8b0133ce8dc3a2d1195b5ed9d4478b40520739b25bb6a77ef9c75f978f92c472a6a1722acbed85e86561ede0dc4bdd0241559c38804b89d383317f6
7
- data.tar.gz: ad0483d874c65bd03407e8e0f7058033bbb18f318cd1228f8d183238bb41b31dbff4d113516afacec7b852d29520abbc68909f2de5b82abc46866327adeb9c67
6
+ metadata.gz: 9e3f8c5e621ef8c70e7b87aaf21fb5d3b34e8407b99a1de93d314f64fed69f7aa02b027e05f70c121539bff9b427b45c307fc5688d98c554e4d8e726c389d997
7
+ data.tar.gz: 8d2ce6815649d8fdc379f3184d5b7bf53b75d963ced3108d60ff1fa049d52b83ff2daaaa26380f63e248f7ed783f07520d700a96f12c252e952992f0049b295c
@@ -132,9 +132,9 @@ module ActiveRecord
132
132
  def _react_param_conversion(param, opt = nil)
133
133
  # defines how react will convert incoming json to this ActiveRecord model
134
134
  #TIMING times = {start: Time.now.to_f, json_start: 0, json_end: 0, db_load_start: 0, db_load_end: 0}
135
- param_is_native = !param.respond_to?(:is_a?) rescue true
136
135
  #TIMING times[:json_start] = Time.now.to_f
137
- param = JSON.from_object param if param_is_native
136
+ param = Native(param)
137
+ param = JSON.from_object(param.to_n) if param.is_a? Native::Object
138
138
  #TIMING times[:json_end] = Time.now.to_f
139
139
  result = if param.is_a? self
140
140
  param
@@ -1,3 +1,3 @@
1
1
  module ReactiveRecord
2
- VERSION = "0.7.40"
2
+ VERSION = "0.7.41"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reactive-record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.40
4
+ version: 0.7.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitch VanDuyn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-02 00:00:00.000000000 Z
11
+ date: 2016-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails