~cytrogen/masto-fe

ref: 915034f6a6f7aeea845b6d7aa257f17eb0f86abf masto-fe/lib/paperclip/url_generator_extensions.rb -rw-r--r-- 291 bytes
915034f6 — jwbjnwolf Revert "Remove layout glitch-soc settings" 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
# 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)