aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/app/controllers/active_storage/base_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Extract ActiveStorage::SetCurrentGeorge Claghorn2018-08-161-5/+3
| | | | Provide a handy concern for custom Active Storage controllers that can't inherit from ActiveStorage::BaseController.
* 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.