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 8db0056 commit 0f0d111Copy full SHA for 0f0d111
2 files changed
app/controllers/abilities_controller.rb
@@ -19,6 +19,7 @@ def edit; end
19
def update
20
if @ability.update(ability_update_params)
21
do_delete_draft(current_user, URI(request.referer || '').path)
22
+ flash[:success] = I18n.t('abilities.success.update_generic')
23
redirect_to ability_path(id: @ability.internal_id)
24
else
25
render :edit, status: :bad_request
config/locales/strings/en.abilities.yml
@@ -5,3 +5,6 @@ en:
5
Description
6
unsaved_changes_confirmation: >
7
Any unsaved changes will be lost. Are you sure?
8
+ success:
9
+ update_generic: >
10
+ Ability successfully updated.
0 commit comments