Paperclip::Attachment.interpolations is deprecated...use Paperclip.interpolates instead?

8 views
Skip to first unread message

Lee Smith

unread,
Oct 27, 2009, 3:36:34 PM10/27/09
to Paperclip Plugin
So I'm getting deprecation warnings with an update to version 2.3.1.1.

Here's my paperclip setup in my Attachment model:

has_attached_file :data,
:url => "/attachments/:ticket_id/:id",
:path => ":rails_root/
attachments/:ticket_id/:id/:basename.:extension"

What's the correct usage? Thanks for any advice.

Lee Smith

unread,
Nov 7, 2009, 12:13:05 AM11/7/09
to Paperclip Plugin
I still haven't figured this out...surely somebody has gotten this
warning before.

Could this be related to the deprecation warning? My design calls for
an 'Attachment' model so that another model can have many
attachments. Here's how I'm declaring that association:

has_many :attachments, :dependent => :destroy, :class_name =>
'::Attachment'

Again, my paperclip "has_attached_file" declaration on the Attachment
model is in the first post.

I appreciate any help!

Lee Smith

unread,
Nov 8, 2009, 9:58:18 AM11/8/09
to Paperclip Plugin
I found my problem...it was in my initializer. Now using
Paperclip.interpolates.
Reply all
Reply to author
Forward
0 new messages