File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed
actionpack/lib/action_dispatch/routing Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -29,23 +29,18 @@ def respond_to_missing?(method, _)
29
29
30
30
def method_missing ( method , *args )
31
31
if @helpers . respond_to? ( method )
32
- instance_eval <<-RUBY , __FILE__ , __LINE__ + 1
33
- def #{ method } (*args)
34
- options = args.extract_options!
35
- options = url_options.merge((options || {}).symbolize_keys)
32
+ options = args . extract_options!
33
+ options = url_options . merge ( ( options || { } ) . symbolize_keys )
36
34
37
- if @script_namer
38
- options[:script_name] = merge_script_names(
39
- options[:script_name],
40
- @script_namer.call(options)
41
- )
42
- end
35
+ if @script_namer
36
+ options [ :script_name ] = merge_script_names (
37
+ options [ :script_name ] ,
38
+ @script_namer . call ( options )
39
+ )
40
+ end
43
41
44
- args << options
45
- @helpers.#{ method } (*args)
46
- end
47
- RUBY
48
- public_send ( method , *args )
42
+ args << options
43
+ @helpers . public_send ( method , *args )
49
44
else
50
45
super
51
46
end
You can’t perform that action at this time.
0 commit comments