There appears to be an issue where the fog_public option is not maintained in the delayed background. I'm overriding the fog_public method and it's just hitting the 'true' response each time.
module Paperclip
module Storage
module Fog
def fog_public(style = default_style)
if @options.has_key?(:fog_public)
if @options[:fog_public].respond_to?(:has_key?) && @options[:fog_public].has_key?(style)
@options[:fog_public][style]
else
@options[:fog_public]
end
else
# Always hits here with a delayed_job instance. It's not calling the attachment instance?
true
end
end
end
end
There appears to be an issue where the fog_public option is not maintained in the delayed background. I'm overriding the fog_public method and it's just hitting the 'true' response each time.