app/controllers/spina/admin/attachments_controller.rb in spina-2.13.1 vs app/controllers/spina/admin/attachments_controller.rb in spina-2.14.0
- old
+ new
@@ -2,10 +2,10 @@
module Admin
class AttachmentsController < AdminController
before_action :set_breadcrumbs
def index
- @attachments = Attachment.sorted.with_attached_file.page(params[:page]).per(25)
+ @attachments = Attachment.sorted.with_attached_file.with_filename(params[:query].to_s).page(params[:page]).per(25)
end
def show
@attachment = Attachment.find(params[:id])
end