mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:09:52 +01:00
7 lines
136 B
Ruby
7 lines
136 B
Ruby
class MuteRule < ApplicationRecord
|
|
belongs_to :user
|
|
|
|
def applies_to?(post)
|
|
!!(post.content =~ /\b#{muted_phrase}\b/i)
|
|
end
|
|
end
|