mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
11 lines
274 B
Ruby
11 lines
274 B
Ruby
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
|
|
end
|
|
end
|
|
end
|