lib/enjoy/gallery/models/gallery.rb in enjoy_cms_gallery-0.4.0.2 vs lib/enjoy/gallery/models/gallery.rb in enjoy_cms_gallery-0.4.1
- old
+ new
@@ -18,9 +18,14 @@
acts_as_nested_set
enjoy_cms_attached_file(:image)
# has_many :connected_objects, as: :enjoy_gallerable
+
+ after_save do
+ auto_rails_admin_jcrop(:image)
+ end
end
+
end
end
end