Skip to content

Commit

Permalink
Merge pull request #3094 from mamhoff/use-send-in-navigation-helper
Browse files Browse the repository at this point in the history
Use `#send` in navigation helper
  • Loading branch information
tvdeyen authored Nov 21, 2024
2 parents c755127 + a26828c commit a244b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/alchemy/admin/navigation_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def sorted_alchemy_modules
#
def route_from_engine_or_main_app(engine_name, url_options)
if engine_name.present?
eval(engine_name).url_for(url_options) # rubocop:disable Security/Eval
send(engine_name).url_for(url_options)
else
main_app.url_for(url_options)
end
Expand Down

0 comments on commit a244b6b

Please sign in to comment.