From d313d56a9c6d83612dd8175e18f17ccb0ebfb302 Mon Sep 17 00:00:00 2001 From: Jan Schulz-Hofen Date: Wed, 17 May 2017 15:40:00 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Highlight=20=E2=80=9CFiles=E2=80=9D=20tab?= =?UTF-8?q?=20when=20viewing=20attachments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/attachments_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index 4412435..b517ecd 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -16,6 +16,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. class AttachmentsController < ApplicationController + menu_item :files + before_action :find_attachment, :only => [:show, :download, :thumbnail, :update, :destroy] before_action :find_editable_attachments, :only => [:edit_all, :update_all] before_action :file_readable, :read_authorize, :only => [:show, :download, :thumbnail] -- 2.7.2