lib/para/attribute_field/image.rb in para-0.4.0 vs lib/para/attribute_field/image.rb in para-0.5.0
- old
+ new
@@ -1,9 +1,11 @@
module Para
module AttributeField
class ImageField < AttributeField::Base
include ActionView::Helpers::AssetTagHelper
+ register :image, self
+
def value_for(instance)
style = attachment_thumb_style_for(instance)
if instance.send(:"#{ name }?")
image_tag(instance.send(name).url(style))