mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
9 lines
249 B
Ruby
9 lines
249 B
Ruby
class Admin::LegalDocumentsController < AdminController
|
|
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
|
|
end
|
|
end
|