material_raingular 0.6.2.3 → 0.6.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12064f5841329d33f5998822cacc5f20f7b83a4f
|
4
|
+
data.tar.gz: d3949ce53e803cb3ee70b90f221f45aab00b07e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8633b067a478cfcf244d1d2d4029dbfe62e59a0818fe43c1b256445fe6ff424ba9a47af172c595d62559c57dc8b6da972b847be5117dae4435d58120594b878
|
7
|
+
data.tar.gz: b47934e0045feb7fab7566fda3e9b89f794d54292bfb3184713f4d931fa16b6e88c91a5be1103696922880e5eb2f5ff0d3590bbfdcb7063e2cb95949fc0d0c2c
|
data/Gemfile.lock
CHANGED
@@ -16,7 +16,7 @@ class MrDestroyModel extends AngularLinkModel
|
|
16
16
|
@_resourcify()
|
17
17
|
@register(Directives.MrDestroy)
|
18
18
|
_resourcify: ->
|
19
|
-
ActiveRecord.$Resource._resourcify(@_model(),@
|
19
|
+
ActiveRecord.$Resource._resourcify(@_model(),@_factory())
|
20
20
|
|
21
21
|
destroy: =>
|
22
22
|
return if @$attrs.disabled || @form.disabled
|
@@ -29,6 +29,7 @@ class MrDestroyModel extends AngularLinkModel
|
|
29
29
|
_model: -> @$controller[0].$viewValue
|
30
30
|
_list: -> @_options().list || @$scope.$eval(@_matchedExpression()[2].split('|')[0])
|
31
31
|
_options: -> @$scope.$eval(@$attrs.mrOptions || '{}')
|
32
|
+
_factory: -> @_options().factory || @_matchedExpression()[1].classify()
|
32
33
|
_matchedExpression: -> @_repeatStatement().match(@REGEXP)
|
33
34
|
_repeatStatement: -> (@REPEAT_TYPES.map (type) => @_repeatElement().getAttribute(type)).$inject('|')
|
34
35
|
_repeatElement: ->
|
@@ -19,7 +19,7 @@ class DirectiveModels.MrUpdateModel extends AngularLinkModel
|
|
19
19
|
@register(Directives.MrUpdate)
|
20
20
|
|
21
21
|
_klass: ->
|
22
|
-
@$attrs.mrUpdateKlass || @parent.classify()
|
22
|
+
@$attrs.mrUpdateKlass || @_factory() || @parent.classify()
|
23
23
|
_resourcify: ->
|
24
24
|
return unless @parentVal()
|
25
25
|
ActiveRecord.$Resource._resourcify(@parentVal(),@_klass())
|
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.3
|
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-
|
11
|
+
date: 2017-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|