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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc58e6497a149483a3d49af5b67aab60bcbb2d67
4
- data.tar.gz: 5b5d9798684d6de83a2954fb0bd2f5f3732184dc
3
+ metadata.gz: b636a42dd2b4835847f9256ccc82fecc57a1463b
4
+ data.tar.gz: 46138c1fa8cd7c3bf12ad4fc699493af2b7a6288
5
5
  SHA512:
6
- metadata.gz: c8a8b65c5ea32feda5597becd364657ff84c8d11cf7480fdf137a91769c62b3aa650ee0209d37106405a501f77ac7b108cad7f3806b9afa10f4cc7a9fed49327
7
- data.tar.gz: bd2110b7cd94edc52afa8c7abc4e256af20820a99452b460a01d413fce3d50f22a82483e8e40343b604c2f81fce0ed9bd6449b6cc3f0d5b6b9229232e342e3bd
6
+ metadata.gz: 24d16314cda33b8d0b312b909c1491aeecb9eb2a4fb1e135303908b65c0e8a86ab4d93adfa027091f167bf1d7b99e2264eccee5343e105aa56218d793d648ae4
7
+ data.tar.gz: 3272ca9fbbbcacee1ae2822069cf445b2aa223694a42782cb90ac20fd9242d84498adff56d7d920344f7534cd628e4c64afbdbd6e024cc55cb175f07e942d3f3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- material_raingular (0.6.4)
4
+ material_raingular (0.6.5)
5
5
  js-routes
6
6
 
7
7
  GEM
@@ -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
- url = if route in @routes.restful then @$url(params,route,method) else route
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]
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.6.4"
2
+ VERSION = "0.6.5"
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.4
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-10 00:00:00.000000000 Z
11
+ date: 2017-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler