This repository has been archived by the owner on Jul 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Duplicate URL for image with... with :class in :url #660
Labels
Comments
Think something got missed. I'm seeing this with 3.0 (upgrading from 2.4.1). No idea what's causing it:
I have the following in an initializer:
...so that multiple classes with attachments use the same path format without having to specify the same format in their has_attached_file declarations. |
I'm seeing this too for classes that have two completely different strings. Here's my (condensed) setup:
And the warning messages I'm seeing:
|
I get something similar: Paperclip::Attachment.default_options[:path] = "tenants/:tenant_id/:class/:id/:file_name_with_style"
Paperclip::Attachment.default_options[:url] = ":s3_path_url"
|
+1 |
Has this been resolved? Thanks. |
Same problema here, has this been solved? Thank you. |
urbanautomaton
pushed a commit
to urbanautomaton/paperclip
that referenced
this issue
Sep 19, 2012
As per discussion in issue thoughtbot#660, attachments using alias interpolations for the attachment URL mistakenly get flagged as being duplicates, although the interpolation expands to a unique location. This commit (partially) addresses the issue by checking the attachment path instead. However, the problem will remain for users who use interpolations other than :class to distinguish attachment paths for different models.
jyurek
pushed a commit
that referenced
this issue
Nov 2, 2012
As per discussion in issue #660, attachments using alias interpolations for the attachment URL mistakenly get flagged as being duplicates, although the interpolation expands to a unique location. This commit (partially) addresses the issue by checking the attachment path instead. However, the problem will remain for users who use interpolations other than :class to distinguish attachment paths for different models.
robg
pushed a commit
to robg/paperclip
that referenced
this issue
Jan 4, 2013
As per discussion in issue thoughtbot#660, attachments using alias interpolations for the attachment URL mistakenly get flagged as being duplicates, although the interpolation expands to a unique location. This commit (partially) addresses the issue by checking the attachment path instead. However, the problem will remain for users who use interpolations other than :class to distinguish attachment paths for different models.
jyurek
pushed a commit
that referenced
this issue
Feb 8, 2013
As per discussion in issue #660, attachments using alias interpolations for the attachment URL mistakenly get flagged as being duplicates, although the interpolation expands to a unique location. This commit (partially) addresses the issue by checking the attachment path instead. However, the problem will remain for users who use interpolations other than :class to distinguish attachment paths for different models.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, just wondering if paperclip is simply reading the path and reporting them as identical? Perhaps it should check that if :class is included in path then a clash won't happen? Thanks.
The text was updated successfully, but these errors were encountered: