route_translator 16.1.0
“Translates the Rails routes of your application into the languages defined in your locale files”
Ruby dynamically invokes a method with sendRuby loads a relative source module
SHA-2565515eb99aabd65e71e6bb78ee1f003444550f59e6edc49270f1c7cb8fb70d5ae
MaleculeO(As)H(Db)
Evidence
18:4… %w[path url].each do |suffix|
19 helper_container = named_route_collection.send(:"#{suffix}_helpers_module")
20 new_helper_name = :"#{old_name}_#{suffix}"
21
22 helper_container.__send__(:define_method, new_helper_name) do |*args|
23 __send__(Translator.route_name_for(args, old_name, suffix, self), *args)
24 end …
1# frozen_string_literal: true
2
3require_relative 'path/segment'
4
5module RouteTranslator
⋯6 lines
No evidence locations were recorded for this file. Raw result