Method: ActiveStorage::Variation.decode
- Defined in:
- activestorage/app/models/active_storage/variation.rb
.decode(key) ⇒ Object
Returns a Variation instance with the transformations that were encoded by encode.
35 36 37 |
# File 'activestorage/app/models/active_storage/variation.rb', line 35 def decode(key) new ActiveStorage.verifier.verify(key, purpose: :variation) end |