comparison 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
comparison
equal deleted inserted replaced
1155:a34a06ba1e33 1156:2f6e71e31b55
113 end 113 end
114 114
115 def toggle_active 115 def toggle_active
116 @attachment.active = !@attachment.active? 116 @attachment.active = !@attachment.active?
117 @attachment.save! 117 @attachment.save!
118 render :layout => false 118 respond_to do |format|
119 format.js
120 end
119 end 121 end
120 122
121 private 123 private
122 def find_project 124 def find_project
123 @attachment = Attachment.find(params[:id]) 125 @attachment = Attachment.find(params[:id])