Revert "REFACTOR: remove unnecessary parentheses"
Specs fail
This commit is contained in:
parent
c6ed86220e
commit
e9ba4c74f7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue