lib/attachment_magick.rb in attachment_magick-0.3 vs lib/attachment_magick.rb in attachment_magick-0.3.1
- old
+ new
@@ -81,6 +81,12 @@
return metric
end
end
end
end
+
+ module InstanceMethods
+ def image_cover
+ self.images.order(:priority).first
+ end
+ end
end
\ No newline at end of file