material_raingular 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/assets/javascripts/active_record/resource.coffee +12 -0
- data/lib/material_raingular/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8346d29258e1d5ad0f1b7930b6c1e7870e9ee01f
|
4
|
+
data.tar.gz: ec8c63f01ac31aeb9a3f5b85aaf075dfb1472530
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74e0b12b2c314baf83a9427daf8487ade0161000de10488b1d8d05e31d60fbe51039257320120c3a8aeae95fedb078b75ef2198f629ad3b70956c4fbca1ede00
|
7
|
+
data.tar.gz: 9cd489aca8a5ccefb7713be41b21fccc87f14a5a740e07fe0e70af41a669b236c852fe81ba36f2d4b1ea11bd3a0339fda0179161655df711969c640cba22086f
|
data/Gemfile.lock
CHANGED
@@ -49,6 +49,18 @@ class ActiveRecord.$Resource extends Module
|
|
49
49
|
else
|
50
50
|
@$promise = @_save.bind(@)().then(callback,error)
|
51
51
|
return @$promise
|
52
|
+
$reload: (callback,error)->
|
53
|
+
if @$promise
|
54
|
+
@$promise = @$promise.then(@_reload.bind(@)).then(callback,error) if (@$promise.$$state.status != 0 || !@$resolved)
|
55
|
+
else
|
56
|
+
@$promise = @_reload.bind(@)().then(callback,error)
|
57
|
+
return @$promise
|
58
|
+
_reload: ->
|
59
|
+
return unless @id
|
60
|
+
res = @$paramSerializer.create(@)
|
61
|
+
@["$" + key + "_was"] = val for key,val of res
|
62
|
+
return @$http.get(@$updateUrl()).then(@$deferProcessResponse.bind(@))
|
63
|
+
|
52
64
|
_save: ->
|
53
65
|
if @id
|
54
66
|
res = @$paramSerializer.update(@)
|
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.
|
4
|
+
version: 0.6.9
|
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-08-
|
11
|
+
date: 2017-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
185
|
version: '0'
|
186
186
|
requirements: []
|
187
187
|
rubyforge_project:
|
188
|
-
rubygems_version: 2.
|
188
|
+
rubygems_version: 2.6.11
|
189
189
|
signing_key:
|
190
190
|
specification_version: 4
|
191
191
|
summary: Angular v1.4 for rails. Angular Material v0.9.8.
|