We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d29118 commit 12f73afCopy full SHA for 12f73af
app/components/alchemy/admin/toolbar_button.rb
@@ -110,7 +110,7 @@ def permissions_from_url
110
action_controller = url.delete_prefix("/").split("/")
111
[
112
action_controller.last.to_sym,
113
- action_controller[0..action_controller.length - 2].join("_").to_sym
+ action_controller[0..-2].join("_").to_sym
114
]
115
end
116
0 commit comments