lib/meducation_sdk/resources/user.rb in meducation_sdk-2.0.1 vs lib/meducation_sdk/resources/user.rb in meducation_sdk-2.0.2
- old
+ new
@@ -10,9 +10,13 @@
community_membership_ids = community_memberships.map(&:id)
return [] if community_membership_ids.empty?
Community.where(id: community_membership_ids)
end
+ def email_preferences
+ UserEmailPreferences.where(user_id: id).first
+ end
+
def settings
UserSettings.where(user_id: id).first
end
end