diff options
author | David Yip <yipdw@member.fsf.org> | 2017-10-14 20:45:14 -0500 |
---|---|---|
committer | David Yip <yipdw@member.fsf.org> | 2017-10-21 14:54:36 -0500 |
commit | a4851100fd3f20fdc01a3ebf7942fab6d5d03ebf (patch) | |
tree | c26eeb769a934a451ebddd749dff95365657304c /app | |
parent | 9f609bc94ec1bd933b4e302833027c3e4682c636 (diff) |
Make use of the regex attr_reader. #164.
It would also have been valid to get rid of the attr_reader, but I like being able to reach inside KeywordMute::Matcher without resorting to instance_variable_get tomfoolery.
Diffstat (limited to 'app')
-rw-r--r-- | app/models/keyword_mute.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/keyword_mute.rb b/app/models/keyword_mute.rb index d80fcaa60..e1a8c3712 100644 --- a/app/models/keyword_mute.rb +++ b/app/models/keyword_mute.rb @@ -38,7 +38,7 @@ class KeywordMute < ApplicationRecord end def =~(str) - @regex ? @regex =~ str : false + regex ? regex =~ str : false end end end |