Mercurial > hg > soundsoftware-site
diff app/controllers/attachments_controller.rb @ 1156:2f6e71e31b55 redmine-2.2-integration
Minor adjustments
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Tue, 15 Jan 2013 15:51:29 +0000 |
parents | bb32da3bea34 |
children | 4f746d8966dd |
line wrap: on
line diff
--- a/app/controllers/attachments_controller.rb Tue Jan 15 15:48:21 2013 +0000 +++ b/app/controllers/attachments_controller.rb Tue Jan 15 15:51:29 2013 +0000 @@ -115,7 +115,9 @@ def toggle_active @attachment.active = !@attachment.active? @attachment.save! - render :layout => false + respond_to do |format| + format.js + end end private