Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No more url_without_processed method #57

Open
bastien opened this issue Jan 18, 2012 · 1 comment
Open

No more url_without_processed method #57

bastien opened this issue Jan 18, 2012 · 1 comment

Comments

@bastien
Copy link

bastien commented Jan 18, 2012

(This would probably have it's place in a mailing list, but I couldn't find any dedicated to delayed_paperclip)

Hi everyone,

I noticed that the url_with_processed was removed in delayed_paperclip 2.4.5.1 and with it the ability to call url_without_processed. Which was quite an handy method to allow people to download content before its thumbnail was generated. I looked through the source code but I couldn't find a new alternative to this method.
I've patched it for now, but I was wondering if there was in fact a better way of accessing the attachment url?

I see that the next version of paperclip allows us to pass our own url_generator, very much looking forward to that.

@zmillman
Copy link

I have a similar problem where I still need to allow users to view a video before it's been compressed. The following is my current hack to get the original video file if it's currently being processed

if lesson.video_processing?
  lesson.video_processing = false
  original_url = lesson.video.url(:original)
  lesson.video_processing = true
  return original_url
else
  lesson.video.url(:web)
end

It's pretty ugly and a url_without_processed would be much nicer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants