module Paperweight::Hooks::AttachmentHook
Overrides the `url` method from `paperclip` so that `paperweight` can check the `image_processing` field and use that if it's still processing.
Public Instance Methods
url(*)
click to toggle source
Calls superclass method
# File lib/paperweight/hooks.rb, line 47 def url(*) processing_url || super end
Private Instance Methods
processing_url()
click to toggle source
# File lib/paperweight/hooks.rb, line 53 def processing_url attribute = :"#{name}_processing" instance.has_attribute?(attribute) && instance.public_send(attribute) end