lib/meibo/user.rb in meibo-0.13.0 vs lib/meibo/user.rb in meibo-0.14.0

- old
+ new

@@ -77,27 +77,27 @@ rescue DataNotFoundError nil end def enrollments - Meibo.current_roster.enrollments.by_user(sourced_id) + Meibo.current_roster.enrollments.where(user_sourced_id: sourced_id) end def primary_organization primary_org_sourced_id && Meibo.current_roster.organizations.find(primary_org_sourced_id) end def primary_role_in(org) - Meibo.current_roster.roles.by_user(sourced_id).detect do |role| + Meibo.current_roster.roles.where(user_sourced_id: sourced_id).detect do |role| role.primary? && role.org_sourced_id == org.sourced_id end end def roles - Meibo.current_roster.roles.by_user(sourced_id) + Meibo.current_roster.roles.where(user_sourced_id: sourced_id) end def user_profiles - Meibo.current_roster.user_profiles.by_user(sourced_id) + Meibo.current_roster.user_profiles.where(user_sourced_id: sourced_id) end end end