This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Fix invites form path (
#5861
)
master
Yamagishi Kazutoshi
7 years ago
committed by
Eugen Rochko
parent
df03042a6e
commit
eee3b32b77
2 changed files
with
7 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
app/controllers/admin/invites_controller.rb
+1
-1
app/views/invites/_form.html.haml
+ 6
- 0
app/controllers/admin/invites_controller.rb
View File
@ -29,5 +29,11 @@ module Admin
@invite
.
expire!
@invite
.
expire!
redirect_to
admin_invites_path
redirect_to
admin_invites_path
end
end
private
def
resource_params
params
.
require
(
:invite
)
.
permit
(
:max_uses
,
:expires_in
)
end
end
end
end
end
+ 1
- 1
app/views/invites/_form.html.haml
View File
@ -1,4 +1,4 @@
= 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
= render 'shared/error_messages', object: @invite
.fields-group
.fields-group
Write
Preview
Loading…
Cancel
Save