aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/app/controllers/active_storage/base_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use a current model to provide the host for service urlsAndrew White2018-04-061-0/+4
| | | | | | | Trying to pass the current request down to the service so that it can create full urls instead of paths makes the API messy so use a model based on ActiveSupport::CurrentAttributes to provide the current host to services that need it (primarily the disk service).
* Protect all active storage controllers agains CSRFRafael Mendonça França2018-04-061-0/+6
Before it was possible to for example use the direct upload controller without using the site.