git-svn-id: http://svn.redmine.org/redmine/trunk@19253 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/4.2.0
@@ -294,7 +294,6 @@ Layout/SpaceInsideHashLiteralBraces: | |||
# SupportedStyles: space, no_space | |||
Layout/SpaceInsideParens: | |||
Exclude: | |||
- 'app/controllers/application_controller.rb' | |||
- 'app/helpers/issues_helper.rb' | |||
- 'app/models/auth_source_ldap.rb' | |||
- 'app/models/repository/cvs.rb' |
@@ -365,7 +365,7 @@ class ApplicationController < ActionController::Base | |||
def find_attachments | |||
if (attachments = params[:attachments]).present? | |||
att = attachments.values.collect do |attachment| | |||
Attachment.find_by_token( attachment[:token] ) if attachment[:token].present? | |||
Attachment.find_by_token(attachment[:token]) if attachment[:token].present? | |||
end | |||
att.compact! | |||
end |