aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/app/controllers/active_storage/representations_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Protect all active storage controllers agains CSRFRafael Mendonça França2018-04-061-1/+1
| | | | | Before it was possible to for example use the direct upload controller without using the site.
* Merge Previews/Variants controller into one Representations controller.Kasper Timm Hansen2018-03-031-0/+14
Since ActiveStorage::Blob::Representable unifies the idea of previews and variants under one roof as representation, we may as well have the controllers follow suit. Thus ActiveStorage::RepresenationsController enters the fray. I've copied the old tests for both previews and variants and unified those as well.