Module: Imgproxy::Extensions::ActiveStorage
- Defined in:
- lib/imgproxy/extensions/active_storage.rb
Overview
Extension for ActiveStorage
Instance Method Summary collapse
-
#imgproxy_info_url(options = {}) ⇒ String
Returns imgproxy info URL for an attachment.
-
#imgproxy_url(options = {}) ⇒ String
Returns imgproxy URL for an attachment.
Instance Method Details
#imgproxy_info_url(options = {}) ⇒ String
Returns imgproxy info URL for an attachment
23 24 25 26 |
# File 'lib/imgproxy/extensions/active_storage.rb', line 23 def imgproxy_info_url( = {}) return .info_url_for(self) if .is_a?(Imgproxy::UrlBuilders::Info) Imgproxy.info_url_for(self, ) end |
#imgproxy_url(options = {}) ⇒ String
Returns imgproxy URL for an attachment
13 14 15 16 |
# File 'lib/imgproxy/extensions/active_storage.rb', line 13 def imgproxy_url( = {}) return .url_for(self) if .is_a?(Imgproxy::UrlBuilders::Processing) Imgproxy.url_for(self, ) end |