material_raingular 0.6.2.3 → 0.6.3

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: ff7f931c2c37eacfbe29174b931bf6cf5ba7c33f
4
- data.tar.gz: 2613f24af659158f8e16ca746f9e7a5f609b5d99
3
+ metadata.gz: 12064f5841329d33f5998822cacc5f20f7b83a4f
4
+ data.tar.gz: d3949ce53e803cb3ee70b90f221f45aab00b07e0
5
5
  SHA512:
6
- metadata.gz: 05d51aaa589da891604a3fb691696ad979ca032db5a52741cc331710dcaeb4551cbbcc012bb1ac04be74a020186ea6e57b9bdc83a938a82ccf97ea2805afe9e7
7
- data.tar.gz: b7371251cdf4f407dcd264ceb01d4939aaf00a540833024269b83581a65f992d52614ea89bea552da90adda12038f08ad42ffd9fb1ae824c199d993c97f5f0bc
6
+ metadata.gz: e8633b067a478cfcf244d1d2d4029dbfe62e59a0818fe43c1b256445fe6ff424ba9a47af172c595d62559c57dc8b6da972b847be5117dae4435d58120594b878
7
+ data.tar.gz: b47934e0045feb7fab7566fda3e9b89f794d54292bfb3184713f4d931fa16b6e88c91a5be1103696922880e5eb2f5ff0d3590bbfdcb7063e2cb95949fc0d0c2c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- material_raingular (0.6.2.3)
4
+ material_raingular (0.6.3)
5
5
  js-routes
6
6
 
7
7
  GEM
@@ -16,7 +16,7 @@ class MrDestroyModel extends AngularLinkModel
16
16
  @_resourcify()
17
17
  @register(Directives.MrDestroy)
18
18
  _resourcify: ->
19
- ActiveRecord.$Resource._resourcify(@_model(),@_matchedExpression()[1].classify())
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())
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.6.2.3"
2
+ VERSION = "0.6.3"
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.2.3
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-06-19 00:00:00.000000000 Z
11
+ date: 2017-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler