class RailsBand::ActiveStorage::Event::Preview
A wrapper for the event that is passed to ‘preview.active_storage`.
Public Instance Methods
key()
click to toggle source
# File lib/rails_band/active_storage/event/preview.rb, line 8 def key return @key if defined? @key @key = @event.payload[:key] end