I'm having trouble accessing paperclip file attributes in an after_destroy callback on my attachment model. I can't seem to access the paperclip-managed attributes but I can access non-paperclip attributes. Here's an example:
class AttachmentObserver < ActiveRecord::Observer def after_destroy(attachment) attachment.logger.info "Deleted #{attachment.user.username} :: # {attachment.name}" end end The log message will say "Deleted Jsmith :: ". No attachment name though. Thanks for any help. Here's a gist if you need it. http://gist.github.com/193623 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---