Feature #25988 » 0001-Highlight-Files-tab-when-viewing-attachments.patch
| app/controllers/attachments_controller.rb | ||
|---|---|---|
|
# 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]
|
||