|
|
|
@ -140,7 +140,7 @@ class FilesController < ApplicationController
|
|
|
|
|
def public_with_course_and_project
|
|
|
|
|
@attachments = Attachment.publiced.simple_columns
|
|
|
|
|
.contains_course_and_project
|
|
|
|
|
.includes(:author => :user_extension)
|
|
|
|
|
.includes(:container, author: :user_extension)
|
|
|
|
|
.by_filename_or_user_name(params[:search])
|
|
|
|
|
.ordered(sort: 0, sort_type: 'created_on')
|
|
|
|
|
|
|
|
|
|