Refactor: Decouple failed attachments and the flash messages
Attachment#attach_files will no longer need to return a flash message, instead it will put unsaved attachments into object#unsaved_attachments where the calling object can access them. A utility method #render_attachment_warning_if_needed is included for setting the standard flash warning. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3528 e93f8b46-1217-0410-a6f0-8f06a7374b81
Showing
- app/controllers/application_controller.rb 5 additions, 0 deletionsapp/controllers/application_controller.rb
- app/controllers/documents_controller.rb 2 additions, 2 deletionsapp/controllers/documents_controller.rb
- app/controllers/issues_controller.rb 3 additions, 2 deletionsapp/controllers/issues_controller.rb
- app/controllers/messages_controller.rb 3 additions, 3 deletionsapp/controllers/messages_controller.rb
- app/controllers/projects_controller.rb 1 addition, 1 deletionapp/controllers/projects_controller.rb
- app/controllers/wiki_controller.rb 3 additions, 3 deletionsapp/controllers/wiki_controller.rb
- app/models/attachment.rb 2 additions, 7 deletionsapp/models/attachment.rb
- vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb 7 additions, 1 deletionvendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb
Please register or sign in to comment