Skip to content

Commit 5fd462b

Browse files
committed
Update README [ci skip]
1 parent d85e1da commit 5fd462b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,8 @@ class UserDecorator < ApplicationDecorator
618618

619619
def dt_actions
620620
links = []
621-
links << h.link_to 'Edit', h.edit_user_path(object) if h.policy(object).update?
622-
links << h.link_to 'Delete', h.user_path(object), remote: true if h.policy(object).destroy?
621+
links << h.link_to 'Edit', h.edit_user_path(object) if h.policy(object).update?
622+
links << h.link_to 'Delete', h.user_path(object), method: :delete, remote: true if h.policy(object).destroy?
623623
h.safe_join(links, '')
624624
end
625625
end

0 commit comments

Comments
 (0)