Skip to content

Commit ad78369

Browse files
committed
Rubocop fixes
1 parent cd938c8 commit ad78369

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

app/policies/better_together/conversation_policy.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ def permitted_participants
4343
manager_ids = BetterTogether::PersonPlatformMembership.where(role_id: role.id).pluck(:member_id)
4444
BetterTogether::Person.where(id: manager_ids)
4545
.or(BetterTogether::Person.privacy_public.where('preferences @> ?',
46-
# rubocop:todo Layout/LineLength
47-
{ receive_messages_from_members: true }.to_json))
48-
# rubocop:enable Layout/LineLength
46+
{ receive_messages_from_members: true }.to_json)) # rubocop:disable Layout/LineLength
4947
.distinct
5048
end
5149
end

spec/features/conversations/create_spec.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@
2929
target = create(:better_together_user, :confirmed)
3030
# Ensure target is public and opted-in to receive messages from members
3131
target.person.update!(privacy: 'public',
32-
# rubocop:todo Layout/LineLength
33-
preferences: (target.person.preferences || {}).merge('receive_messages_from_members' => true))
34-
# rubocop:enable Layout/LineLength
32+
preferences: (target.person.preferences || {}).merge('receive_messages_from_members' => true)) # rubocop:disable Layout/LineLength
3533

3634
expect do
3735
create_conversation([target.person], first_message: 'Hi there')

0 commit comments

Comments
 (0)