Menu

Commit [r3528]  Maximize  Restore  History

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.

edavis10 2010-03-03

changed /trunk/app/controllers/application_controller.rb
changed /trunk/app/controllers/documents_controller.rb
changed /trunk/app/controllers/issues_controller.rb
changed /trunk/app/controllers/messages_controller.rb
changed /trunk/app/controllers/projects_controller.rb
changed /trunk/app/controllers/wiki_controller.rb
changed /trunk/app/models/attachment.rb
changed /trunk/vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb
/trunk/app/controllers/application_controller.rb Diff Switch to side-by-side view
Loading...
/trunk/app/controllers/documents_controller.rb Diff Switch to side-by-side view
Loading...
/trunk/app/controllers/issues_controller.rb Diff Switch to side-by-side view
Loading...
/trunk/app/controllers/messages_controller.rb Diff Switch to side-by-side view
Loading...
/trunk/app/controllers/projects_controller.rb Diff Switch to side-by-side view
Loading...
/trunk/app/controllers/wiki_controller.rb Diff Switch to side-by-side view
Loading...
/trunk/app/models/attachment.rb Diff Switch to side-by-side view
Loading...
/trunk/vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.