dynamic_image 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dynamic_image/helper/formats.rb +4 -1
- data/lib/dynamic_image/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f098d53169629e3e9958e1cd67d320c3950d87ef9480451201c95fc74aeb0673
|
|
4
|
+
data.tar.gz: 86b1de10949a440da1a2f7ec732a8e8ef883f481950facb5d1bac597dd1f3392
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a4bb11b4f2e08f64498f09524f308414aab7007b721aaa15c9d3fcdaad58efa97810bc5597fd32315b88e73c8db53408b6a141dc5289966d88caa46effd675d
|
|
7
|
+
data.tar.gz: 95d13e86e911f99ec93222ed2f6b79efba44c54a6407a6e859bc2623f1d2eb020e05301260827d8862a5ac6c26f064b56c6812e6901cb68172f7a688cd9eb492
|
|
@@ -49,8 +49,11 @@ module DynamicImage
|
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
+
# The helper is also mixed into objects that aren't views, which have no controller at all.
|
|
52
53
|
def mailer_view?
|
|
53
|
-
defined?(ActionMailer::Base) &&
|
|
54
|
+
return false unless defined?(ActionMailer::Base) && respond_to?(:controller, true)
|
|
55
|
+
|
|
56
|
+
controller.is_a?(ActionMailer::Base)
|
|
54
57
|
end
|
|
55
58
|
end
|
|
56
59
|
end
|