material_raingular 0.6.4 → 0.6.5
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/controller.coffee +2 -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: b636a42dd2b4835847f9256ccc82fecc57a1463b
|
4
|
+
data.tar.gz: 46138c1fa8cd7c3bf12ad4fc699493af2b7a6288
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24d16314cda33b8d0b312b909c1491aeecb9eb2a4fb1e135303908b65c0e8a86ab4d93adfa027091f167bf1d7b99e2264eccee5343e105aa56218d793d648ae4
|
7
|
+
data.tar.gz: 3272ca9fbbbcacee1ae2822069cf445b2aa223694a42782cb90ac20fd9242d84498adff56d7d920344f7534cd628e4c64afbdbd6e024cc55cb175f07e942d3f3
|
data/Gemfile.lock
CHANGED
@@ -17,7 +17,7 @@ class ActiveRecord.Controller extends AngularServiceModel
|
|
17
17
|
@$buildUrls() unless @_urls
|
18
18
|
key = Object.keys(params || {}).intersection(Object.keys(@_urls))[0]
|
19
19
|
path = @_urls[key][route] if key && route
|
20
|
-
path ||= @__url__()
|
20
|
+
path ||= if route in @routes.restful then @__url__() else route
|
21
21
|
replacements = {new: 'new',edit: ':id/edit'}
|
22
22
|
path = path.replace(':id',replacements[route]) if route in Object.keys(replacements)
|
23
23
|
additionals={}
|
@@ -58,8 +58,7 @@ class ActiveRecord.Controller extends AngularServiceModel
|
|
58
58
|
error = callback
|
59
59
|
callback = params
|
60
60
|
params = {}
|
61
|
-
|
62
|
-
promise = @$http(url: url, method: method, data: params)
|
61
|
+
promise = @$http(url: @$url(params,route,method), method: method, data: params)
|
63
62
|
options = {
|
64
63
|
klass: @__name__()
|
65
64
|
update_url: update_url || @$rawUrl(params,'update','PUT')[0]
|
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.5
|
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-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|