action_trace 0.4.0 → 0.6.0

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: 8203cf9f2490c006cca8d9ce25fd692cfe5d06c576c44837733da34ec83f22e6
4
- data.tar.gz: 77310c6e8c0f072dc2714f251d0db19d968fa3edf5c8d5ace62ffd9a4393218a
3
+ metadata.gz: 50505b302371033a0ac105ce7869c021d6f3a4a5daa94f6cb76a59660b936f9a
4
+ data.tar.gz: 75b6e578c378f66b768cf75afd74a1fc64adc42f4fe62a8c7602098b483877f5
5
5
  SHA512:
6
- metadata.gz: 0ec68b1545e8e87b327b2288b451ec69b8a864829341b7c6f163e17be14b0e868753c888c6dc81de3f31574eb2f6acecae17c1e806346dc07638b7f952cbcf52
7
- data.tar.gz: 7152f64871c07d49360cd285f456376f6d5aeac054f7b35583249ed0f98c4ee9efc1e0fb1e89e3184a6d91fcfd81b43c486b65f2cba9f7965ab71fbf43ebe59c
6
+ metadata.gz: e3f7030e563afeae48d1cc263aacecb0c3b0817d4200e4de8b4a8b8757b414e33c22223b06a10a0faf3d321ec7894939d0530f90e86637665ce8736518a2f760
7
+ data.tar.gz: 49ddfef35c96aaf48600f69d7851f3b38aab650bd0f684d9683d6bb967bc6e90aafb2951544d42f8999895bff398308d2d77812f42183cfa94b29cd5e6809c11
@@ -2,5 +2,18 @@
2
2
 
3
3
  module ActionTrace
4
4
  class ApplicationController < ::ApplicationController
5
+ helper do
6
+ def method_missing(method_name, *args, &block)
7
+ if method_name.to_s.end_with?('_path', '_url') && main_app.respond_to?(method_name)
8
+ main_app.public_send(method_name, *args, &block)
9
+ else
10
+ super
11
+ end
12
+ end
13
+
14
+ def respond_to_missing?(method_name, include_private = false)
15
+ (method_name.to_s.end_with?('_path', '_url') && main_app.respond_to?(method_name)) || super
16
+ end
17
+ end
5
18
  end
6
19
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActionTrace
4
- VERSION = '0.4.0'
4
+ VERSION = '0.6.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_trace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - gimbaro