Skip to content

Commit b69a908

Browse files
committed
fixes call to I18n translation method
1 parent cbd30fa commit b69a908

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/models/better_together/conversation.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ def to_s
1717
private
1818

1919
def at_least_one_participant
20-
nil unless participants.empty?
20+
return unless participants.empty?
21+
22+
errors.add(:conversation_participants, I18n.t('pundit.errors.leave_conversation'))
2123
end
2224
end
2325
end

0 commit comments

Comments
 (0)