mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 20:46:21 +00:00
fix: métodos en disk_controller_decorator.rb #102
This commit is contained in:
parent
628a5fedb2
commit
83b29bbd8a
1 changed files with 5 additions and 5 deletions
|
@ -11,7 +11,7 @@ module ActiveStorage
|
||||||
# Permitir incrustar archivos subidos (especialmente PDFs) desde
|
# Permitir incrustar archivos subidos (especialmente PDFs) desde
|
||||||
# otros sitios.
|
# otros sitios.
|
||||||
def show
|
def show
|
||||||
original_show.tap do |s|
|
original_show.tap do |_s|
|
||||||
response.headers.delete 'X-Frame-Options'
|
response.headers.delete 'X-Frame-Options'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -57,7 +57,7 @@ module ActiveStorage
|
||||||
end
|
end
|
||||||
|
|
||||||
def limits(max_upload_size, max_download_size)
|
def limits(max_upload_size, max_download_size)
|
||||||
ruby_hash = { "max_upload_size": max_upload_size, "max_download_size": max_download_size }
|
ruby_hash = { max_upload_size: max_upload_size, max_download_size: max_download_size }
|
||||||
json_string = JSON.generate(ruby_hash)
|
json_string = JSON.generate(ruby_hash)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -73,11 +73,11 @@ module ActiveStorage
|
||||||
end
|
end
|
||||||
|
|
||||||
def max_upload_size
|
def max_upload_size
|
||||||
max_upload_size_mbs = ENV['MAX_UPLOAD_SIZE'].to_i.megabytes
|
ENV['MAX_UPLOAD_SIZE'].to_i.megabytes
|
||||||
end
|
end
|
||||||
|
|
||||||
def max_download_size
|
def max_download_size
|
||||||
max_download_size_mbs = ENV['MAX_DOWNLOAD_SIZE'].to_i.megabytes
|
ENV['MAX_DOWNLOAD_SIZE'].to_i.megabytes
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue