rao-resources_controller 0.0.50.pre → 0.0.52.pre

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
  SHA256:
3
- metadata.gz: 9a77482ef8736751ebab6c1ea43335f9c83b0df9b12e765956adb94ae366befe
4
- data.tar.gz: 475e4173a5e082f3547532b233083b402741c46f1c14fd62ccbd7daeb700d1ef
3
+ metadata.gz: 72a3cb536d3b5abec8bcf1e030321a6172784870a154f23f8e3300565266f620
4
+ data.tar.gz: 01bdfda0e31e80bc7b39d3d939cb806dc4b4a514871411fc358727591bf400e4
5
5
  SHA512:
6
- metadata.gz: 8e8f943e0eb527ae4e4c27299334a094d66dd1dd4917c1d460862a0ddd058f0fc0c6481f9cb5160f72f501c73f56536ac4a597cbbbccb3babed15f61662a508f
7
- data.tar.gz: 1de3255653c1cc23f8c804e8b6d1c83f3393d039970dfaa2b2c01204fdb29e1ce90f92a0b4dd5fc7ed1e3c9b51bebd2dfe203b338ffddb377019afc9f3c83e5e
6
+ metadata.gz: 4304acf3cd39b654a6cf95351ba9e7b799eddee0aa6aac20f9889a42f8447c5445ec5c783e3bfc66ccee691fe42c973a98cafe4ef65c8f589f5d137e45bbef23
7
+ data.tar.gz: 66e6a70f1b23de363d640023b641495001101df76762d6ec0729daafaf61a82443458cde94b0c090868e6ad0f1f90ac8619efb2c523ad8318899cb1cca883fd0
@@ -16,7 +16,7 @@ module Rao
16
16
 
17
17
  def store_location
18
18
  return if request.referer.nil?
19
- truncate_location_history(9)
19
+ truncate_location_history(3)
20
20
  logger.debug "[LocationHistoryConcern] Storing last location [#{request.referer}]"
21
21
  location_history[Time.zone.now] = request.referer
22
22
  end
@@ -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.50.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-16 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
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  - !ruby/object:Gem::Version
211
211
  version: 1.3.1
212
212
  requirements: []
213
- rubygems_version: 3.4.20
213
+ rubygems_version: 3.4.21
214
214
  signing_key:
215
215
  specification_version: 4
216
216
  summary: Resources Controllers for Ruby on Rails.