diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-08-27 12:28:10 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-09-16 14:03:22 +0100 |
commit | e91443d8fab05b805fa781c701ca8616aeff563f (patch) | |
tree | bd48900ce58866e58f245bf151da1ada8cd50e82 /lib/message_prominence.rb | |
parent | 798ba1a031c162b36bb1b4a61a431c7026fe1223 (diff) |
Move indexed_by_search to MessageProminence
Add some tests that it's working on the outgoing message model.
Diffstat (limited to 'lib/message_prominence.rb')
-rw-r--r-- | lib/message_prominence.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/message_prominence.rb b/lib/message_prominence.rb index cc70be3b1..9149a6b28 100644 --- a/lib/message_prominence.rb +++ b/lib/message_prominence.rb @@ -13,6 +13,10 @@ module MessageProminence Ability.can_view_with_prominence?(self.prominence, self.info_request, user) end + def indexed_by_search? + self.prominence == 'normal' + end + end end |