Mercurial > hg > soundsoftware-site
changeset 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 | a34a06ba1e33 |
children | 13ab8b6e8132 |
files | app/controllers/attachments_controller.rb app/views/attachments/toggle_active.js.erb |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
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