Module: Sufia::BatchUploadsControllerBehavior

Extended by:
ActiveSupport::Concern
Includes:
CurationConcerns::CurationConcernController, Hydra::Controller::ControllerBehavior
Included in:
BatchUploadsController
Defined in:
app/controllers/concerns/sufia/batch_uploads_controller_behavior.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#createObject



12
13
14
15
16
17
# File 'app/controllers/concerns/sufia/batch_uploads_controller_behavior.rb', line 12

def create
  authenticate_user!
  create_update_job
  flash[:notice] = t('sufia.works.new.after_create_html', application_name: view_context.application_name)
  redirect_after_update
end