diff --git a/app/controllers/appearance_release_imports_controller.rb b/app/controllers/appearance_release_imports_controller.rb index 064e21d..b80a7d2 100644 --- a/app/controllers/appearance_release_imports_controller.rb +++ b/app/controllers/appearance_release_imports_controller.rb @@ -11,11 +11,11 @@ class AppearanceReleaseImportsController < ApplicationController def create authorize AppearanceRelease attachments = appearance_release_params + if attachments.nil? alert_message = t 'appearance_releases.create.no_attachments' redirect_to [@project, :appearance_releases], alert: alert_message else - # filtered_attachments = filter_attachments attachments MatchAppearanceReleasesJob.perform_later(@project, attachments) notice_message = t 'appearance_releases.create.matching_started' redirect_to [@project, :appearance_releases], notice: notice_message