material_raingular 0.1.5.3 → 0.1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/assets/javascripts/rails_updater.coffee +4 -3
- data/lib/material_raingular/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0445a1bd23609962ce24495b386fa847d41a4b23
|
4
|
+
data.tar.gz: e1f729a314d4a73b22a5c06f3b68ac889d91c5fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 966ad5a588ccbb0e5dd0fd856482b427defa6242ea1546c60f5c098cb36c62a0d9beec9c4bc3c6b95189e97a116c8a9d61f1a76c7fb61c316cf7217d46ba2767
|
7
|
+
data.tar.gz: af2a53efb48d80dc166f26d0292e62161a52c8cc57a51a14a1064c242dec76ec361afa7f6a9c239820e2fffc05163a15d78f87762e77fc83fed167c7f76cfe20
|
@@ -20,15 +20,16 @@ class RailsUpdate
|
|
20
20
|
return true if (!!left && !!right) == false
|
21
21
|
false
|
22
22
|
update: (value) ->
|
23
|
+
@scope[@modelName].currently_updating = [] unless @scope[@modelName].currently_updating
|
23
24
|
atomName = if typeof @atomName == 'function' then @atomName(@scope) else @atomName
|
24
25
|
@value = if @override then @scope.$eval(atomName) else value
|
25
26
|
object = {id: @scope.$eval(@modelName).id}
|
26
27
|
object[@railsName] = {}
|
27
28
|
object[@railsName][atomName] = value
|
28
|
-
unless @scope[@modelName].currently_updating
|
29
|
-
@scope[@modelName].currently_updating
|
29
|
+
unless @scope[@modelName].currently_updating.includes(atomName)
|
30
|
+
@scope[@modelName].currently_updating.push(atomName)
|
30
31
|
@factory.update object, (returnData) =>
|
31
|
-
@scope[@modelName].currently_updating
|
32
|
+
@scope[@modelName].currently_updating.drop(atomName)
|
32
33
|
unless @equiv(@ngModelCtrl.$viewValue,returnData[@atomName])
|
33
34
|
@ngModelCtrl.$setModelValue = returnData[@atomName]
|
34
35
|
@ngModelCtrl.$render()
|
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.1.5.
|
4
|
+
version: 0.1.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Moody
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|