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.
2 parents 6ab5aee + 9f5ed3a commit 74b289eCopy full SHA for 74b289e
1 file changed
app/controllers/admin/frameworks_controller.rb
@@ -80,7 +80,6 @@ def publish
80
81
def archive_confirmation; end
82
83
- # rubocop:disable Metrics/AbcSize
84
def archive
85
@framework.errors.clear
86
@@ -89,15 +88,14 @@ def archive
89
88
return redirect_to admin_framework_path(@framework)
90
end
91
92
- if @framework.archive
+ if @framework.archive!
93
flash[:success] = 'Framework archived successfully.'
94
else
95
- flash[:failure] = @framework.errors.full_messages.to_sentence.presence || 'Error archiving framework.'
+ flash[:failure] = 'Error archiving framework: FDL does not pass validation.'
96
97
98
redirect_to admin_framework_path(@framework)
99
100
- # rubocop:enable Metrics/AbcSize
101
102
def unarchive_confirmation; end
103
0 commit comments