Skip to content

Commit 12f73af

Browse files
committed
chore: standardrb --fix
1 parent 4d29118 commit 12f73af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/alchemy/admin/toolbar_button.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def permissions_from_url
110110
action_controller = url.delete_prefix("/").split("/")
111111
[
112112
action_controller.last.to_sym,
113-
action_controller[0..action_controller.length - 2].join("_").to_sym
113+
action_controller[0..-2].join("_").to_sym
114114
]
115115
end
116116
end

0 commit comments

Comments
 (0)