Skip to content
Snippets Groups Projects
Commit eee3b32b authored by Yamagishi Kazutoshi's avatar Yamagishi Kazutoshi Committed by Eugen Rochko
Browse files

Fix invites form path (#5861)

parent df03042a
No related branches found
No related tags found
No related merge requests found
......@@ -29,5 +29,11 @@ module Admin
@invite.expire!
redirect_to admin_invites_path
end
private
def resource_params
params.require(:invite).permit(:max_uses, :expires_in)
end
end
end
= simple_form_for(@invite) do |f|
= simple_form_for(@invite, url: controller.is_a?(Admin::InvitesController) ? admin_invites_path : invites_path) do |f|
= render 'shared/error_messages', object: @invite
.fields-group
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment