module Imgproxy::Extensions::ActiveStorage

Extension for ActiveStorage @see Imgproxy.extend_active_storage!

Public Instance Methods

imgproxy_info_url(options = {}) click to toggle source

Returns imgproxy info URL for an attachment

@return [String] @param options [Hash, Imgproxy::Builder] @see Imgproxy.info_url_for

# File lib/imgproxy/extensions/active_storage.rb, line 21
def imgproxy_info_url(options = {})
  return options.info_url_for(self) if options.is_a?(Imgproxy::Builder)
  Imgproxy.info_url_for(self, options)
end
imgproxy_url(options = {}) click to toggle source

Returns imgproxy URL for an attachment

@return [String] @param options [Hash, Imgproxy::Builder] @see Imgproxy.url_for

# File lib/imgproxy/extensions/active_storage.rb, line 11
def imgproxy_url(options = {})
  return options.url_for(self) if options.is_a?(Imgproxy::Builder)
  Imgproxy.url_for(self, options)
end