fan out to group members

This commit is contained in:
2458773093
2019-08-09 15:11:11 +03:00
parent c8ce87e4f9
commit 213d5862ac
2 changed files with 18 additions and 0 deletions

View File

@@ -28,4 +28,10 @@ module GroupInteractions
end
end
def accounts_for_local_distribution
accounts.local
.joins(:user)
.where('users.current_sign_in_at > ?', User::ACTIVE_DURATION.ago)
end
end