rao-resources_controller 0.0.51.pre → 0.0.52.pre

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
  SHA256:
3
- metadata.gz: ed77f13d64e453c1739f049490a162ecb6ae2692e773488fe2800e1d9706671a
4
- data.tar.gz: 5e56b6a6b51aca5497681d3b30581fc0fe8d8db312ffa6923b44845c9b833587
3
+ metadata.gz: 72a3cb536d3b5abec8bcf1e030321a6172784870a154f23f8e3300565266f620
4
+ data.tar.gz: 01bdfda0e31e80bc7b39d3d939cb806dc4b4a514871411fc358727591bf400e4
5
5
  SHA512:
6
- metadata.gz: 8ba4b9b0276212d1c74f18f69e1cd412d68f9f93afabf9e6656745c21785277c084da11b37c582ca561f4792c1b1667544698a7fd71d3536b08f4fc4fb7f7115
7
- data.tar.gz: 8da548cadd086c29e6db291cc69f229d9d5fda29dba384c61d7a426e5310a359cef3c91df58d28bbfb3b62b5b303da0bcda7ed9ba9a0f09f4c5ce0c1d6d0693b
6
+ metadata.gz: 4304acf3cd39b654a6cf95351ba9e7b799eddee0aa6aac20f9889a42f8447c5445ec5c783e3bfc66ccee691fe42c973a98cafe4ef65c8f589f5d137e45bbef23
7
+ data.tar.gz: 66e6a70f1b23de363d640023b641495001101df76762d6ec0729daafaf61a82443458cde94b0c090868e6ad0f1f90ac8619efb2c523ad8318899cb1cca883fd0
@@ -12,19 +12,19 @@ module Rao
12
12
  private
13
13
 
14
14
  def new_resource_path
15
- resource_router.send(:url_for, { action: :new, only_path: true })
15
+ resource_router.polymorphic_path(resource_class, action: :new)
16
16
  end
17
17
 
18
18
  def collection_path
19
- resource_router.send(:url_for, { action: :index, only_path: true })
19
+ resource_router.polymorphic_path(resource_class)
20
20
  end
21
21
 
22
22
  def resource_path(resource)
23
- resource_router.send(:url_for, { action: :show, id: resource, only_path: true })
23
+ resource_router.polymorphic_path(resource)
24
24
  end
25
25
 
26
26
  def edit_resource_path(resource)
27
- resource_router.send(:url_for, { action: :edit, id: resource, only_path: true })
27
+ resource_router.polymorphic_path(resource, action: :edit)
28
28
  end
29
29
 
30
30
  def resource_router
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rao-resources_controller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.51.pre
4
+ version: 0.0.52.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-28 00:00:00.000000000 Z
11
+ date: 2024-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails