mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 03:58:27 +02:00
Use BaseController in admin
This commit is contained in:
parent
cee4c84edd
commit
a63b989cd6
36 changed files with 1265 additions and 1215 deletions
|
@ -1,9 +1,11 @@
|
|||
class Admin::LegalDocumentsController < AdminController
|
||||
load_and_authorize_resource
|
||||
module Admin
|
||||
class LegalDocumentsController < BaseController
|
||||
load_and_authorize_resource
|
||||
|
||||
def show
|
||||
@ld = LegalDocument.find(params[:id])
|
||||
filename = @ld.path.split('/').last
|
||||
send_data File.open(@ld.path).read, filename: filename
|
||||
def show
|
||||
@ld = LegalDocument.find(params[:id])
|
||||
filename = @ld.path.split('/').last
|
||||
send_data File.open(@ld.path).read, filename: filename
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue