lib/avo/base_resource.rb in avo-1.5.0 vs lib/avo/base_resource.rb in avo-1.5.1
- old
+ new
@@ -351,10 +351,12 @@
rescue
nil
end
def avatar
- avatar_field.to_image
+ return avatar_field.to_image if avatar_field.respond_to? :to_image
+
+ avatar_field.value
rescue
nil
end
def avatar_type