app/controllers/alchemy/attachments_controller.rb in alchemy_cms-2.6.3 vs app/controllers/alchemy/attachments_controller.rb in alchemy_cms-2.7.0
- old
+ new
@@ -26,10 +26,10 @@
end
private
def load_attachment
- @attachment = Attachment.where(:id => params[:id]).first
+ @attachment = Attachment.find(params[:id])
end
end
end