Module: Imgproxy::Extensions::ActiveStorage
- Defined in:
- lib/imgproxy/extensions/active_storage.rb
Overview
Extension for ActiveStorage
Instance Method Summary collapse
-
#imgproxy_url(options = {}) ⇒ String
Returns imgproxy URL for an attachment.
Instance Method Details
#imgproxy_url(options = {}) ⇒ String
Returns imgproxy URL for an attachment
11 12 13 14 |
# File 'lib/imgproxy/extensions/active_storage.rb', line 11 def imgproxy_url( = {}) return .url_for(self) if .is_a?(Imgproxy::Builder) Imgproxy.url_for(self, ) end |