You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
metu.life/lib/paperclip/url_generator_extensions.rb

11 lines
291 B

# frozen_string_literal: true
module Paperclip
module UrlGeneratorExtensions
def for_as_default(style_name)
attachment_options[:interpolator].interpolate(default_url, @attachment, style_name)
end
end
end
Paperclip::UrlGenerator.prepend(Paperclip::UrlGeneratorExtensions)