lib/generators/scrivito/install/templates/app/models/image.rb in scrivito_sdk-0.71.2 vs lib/generators/scrivito/install/templates/app/models/image.rb in scrivito_sdk-0.90.0.rc1
- old
+ new
@@ -1,3 +1,8 @@
class Image < Obj
attribute :blob, :binary
+
+ # activate image resizing and optimization
+ def apply_image_transformation?
+ true
+ end
end