lib/enjoy/gallery/models/image.rb in enjoy_cms_gallery-0.4.0.2 vs lib/enjoy/gallery/models/image.rb in enjoy_cms_gallery-0.4.1
- old
+ new
@@ -12,9 +12,14 @@
belongs_to :gallery, class_name: "Enjoy::Gallery::Gallery"
acts_as_nested_set
enjoy_cms_attached_file(:image)
+
+ after_save do
+ auto_rails_admin_jcrop(:image)
+ end
end
+
end
end
end