Revert "REFACTOR: remove unnecessary parentheses"

Specs fail
This commit is contained in:
Neil Lalonde 2019-03-12 15:00:58 -04:00
parent c6ed86220e
commit e9ba4c74f7

View File

@ -215,7 +215,8 @@ class Post < ActiveRecord::Base
end
def matches_recent_post?
$redis.get(unique_post_key).to_i != id
post_id = $redis.get(unique_post_key)
post_id != (nil) && post_id.to_i != (id)
end
def raw_hash