action_trace 0.5.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: 4f6b9df601fc1b5bedd7645871e17c93f4d334278638bfa99740f0812872efa9
4
- data.tar.gz: ca8d577cf72490ef7ad74ea1cf16656b6e0f4034004b232a4198e5354f80d75d
3
+ metadata.gz: 50505b302371033a0ac105ce7869c021d6f3a4a5daa94f6cb76a59660b936f9a
4
+ data.tar.gz: 75b6e578c378f66b768cf75afd74a1fc64adc42f4fe62a8c7602098b483877f5
5
5
  SHA512:
6
- metadata.gz: 50e433d0f4b3a95390561dff3b8961fe161694be8eb3e75b135d3d0139bed09a0fee0f77423f9e5f5a69cb57ae908e320c869fc43a86c59a8bf379fd66246773
7
- data.tar.gz: 1551ed0bc120bb29d104c31c8f667e55264f6a47b3c1f7403e81b775cad711de5edb666a2ec3d84770e9bd3109c2e3d1220484919dff1047bef1287f84484f03
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
@@ -12,10 +12,6 @@ module ActionTrace
12
12
  g.test_framework :rspec
13
13
  end
14
14
 
15
- config.to_prepare do
16
- ActionTrace::ApplicationController.helper Rails.application.routes.url_helpers
17
- end
18
-
19
15
  config.after_initialize do
20
16
  begin
21
17
  user_class = ActionTrace.configuration.user_class.constantize
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActionTrace
4
- VERSION = '0.5.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.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - gimbaro