Feature #25988 » 0001-Highlight-Files-tab-when-viewing-attachments.patch
| app/controllers/attachments_controller.rb | ||
|---|---|---|
| 16 | 16 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 | 17 | |
| 18 | 18 |
class AttachmentsController < ApplicationController |
| 19 |
menu_item :files |
|
| 20 | ||
| 19 | 21 |
before_action :find_attachment, :only => [:show, :download, :thumbnail, :update, :destroy] |
| 20 | 22 |
before_action :find_editable_attachments, :only => [:edit_all, :update_all] |
| 21 | 23 |
before_action :file_readable, :read_authorize, :only => [:show, :download, :thumbnail] |