Fix loading ActiveStorage::DiskController when CSRF protection is disabled by default

This commit is contained in:
George Claghorn 2017-11-21 14:59:30 -05:00
parent 3fa812615a
commit 4d5f0bb30b
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
# Always go through the BlobsController, or your own authenticated controller, rather than directly
# to the service url.
class ActiveStorage::DiskController < ActionController::Base
skip_forgery_protection
skip_forgery_protection if default_protect_from_forgery
def show
if key = decode_verified_key