app/presenters/decidim/assembly_member_presenter.rb in decidim-assemblies-0.25.2 vs app/presenters/decidim/assembly_member_presenter.rb in decidim-assemblies-0.26.0.rc1
- old
+ new
@@ -31,9 +31,19 @@
return position_other if __getobj__.position == "other"
I18n.t(__getobj__.position, scope: "decidim.admin.models.assembly_member.positions", default: "")
end
+ def non_user_avatar_path
+ return non_user_avatar.default_url unless non_user_avatar.attached?
+
+ non_user_avatar.path
+ end
+
+ def non_user_avatar
+ attached_uploader(:non_user_avatar)
+ end
+
private
def user
@user ||= begin
if (user = __getobj__.user.presence)