Minitest/MultipleAssertions:
Max: 60
-# Offense count: 10
-# This cop supports unsafe autocorrection (--autocorrect-all).
-Rails/ActionControllerFlashBeforeRender:
- Exclude:
- - 'app/controllers/application_controller.rb'
- - 'app/controllers/confirmations_controller.rb'
- - 'app/controllers/issue_comments_controller.rb'
- - 'app/controllers/messages_controller.rb'
- - 'app/controllers/passwords_controller.rb'
- - 'app/controllers/traces_controller.rb'
- - 'app/controllers/user_blocks_controller.rb'
- - 'app/controllers/users_controller.rb'
-
# Offense count: 2
# Configuration parameters: Include.
# Include: app/models/**/*.rb
@trace.schedule_import
redirect_to :action => :index, :display_name => current_user.display_name
else
- flash[:error] = t(".upload_failed") if @trace.valid?
+ flash.now[:error] = t(".upload_failed") if @trace.valid?
render :action => "new"
end