material_raingular 0.6.14 → 0.6.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f95d7fa7a01a6e34fbf35fdd31fa46aefcffe308
4
- data.tar.gz: 93aad7b7e022e8455a3c580ee34b4097879e5d96
3
+ metadata.gz: a3c389abb7137ed905f8dee7e62baadece4822df
4
+ data.tar.gz: 691537a80d18a18eeacbf11508bd1eaee6d898b2
5
5
  SHA512:
6
- metadata.gz: e26f8c0670468b047e03bb35f9301fe6a09f402a6be741fba28e3c2f91dd3ede3263b933ae2228c4fb8abb000a9bbe1ab022d34cbc7a64c3588c557404e15ce2
7
- data.tar.gz: e14d460d78297ea63ac3a4fefcd7917fc7d296c4865866f74744afa1ebbd07e939578e7ce77c235e56225dbfd5de0c310189e0d8fd839628e5595c567239f13b
6
+ metadata.gz: 0ac767a0096a29883eaef2d7e55084f55966e285c82f309520820f6331ffe2615a4b269fd8452d512cb38b36d2b7cb33b67283905ab7d240be530b1471dfbf2b
7
+ data.tar.gz: 1d3c90b2facf47f243a9c204530fa23c53825c1262b2faa65c125a8e6e5b264c1d2101aa891a3d359104ae0bd9944d6516fe306acce1e2f7b51636a1d1a30ed3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- material_raingular (0.6.14)
4
+ material_raingular (0.6.15)
5
5
  js-routes
6
6
 
7
7
  GEM
@@ -33,7 +33,6 @@ class ActiveRecord.$Resource extends Module
33
33
  @['$' + key + '_was'] = angular.copy(val) unless key[0] in ['$','_']
34
34
  catch
35
35
  @['$' + key + '_was'] = val unless key[0] in ['$','_']
36
- # @$updatingKeys = []
37
36
  return @
38
37
 
39
38
  _defaultWrap: -> @_options.klass.underscore()
@@ -62,8 +61,9 @@ class ActiveRecord.$Resource extends Module
62
61
  return @$promise
63
62
  _reload: ->
64
63
  return unless @id
65
- res = @$paramSerializer.create(@)
66
- @["$" + key + "_was"] = val for key,val of res
64
+ for key,val of @
65
+ continue unless (match = key.match(/^\$(.*)\_was$/))
66
+ @[key] = @[match[1]]
67
67
  return @$http.get(@$updateUrl()).then(@$deferProcessResponse.bind(@))
68
68
 
69
69
  _save: ->
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.6.14"
2
+ VERSION = "0.6.15"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_raingular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.14
4
+ version: 0.6.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Moody
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-09 00:00:00.000000000 Z
11
+ date: 2017-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler