Story#is_downvotable? is gone
This commit is contained in:
parent
8b60e5fd63
commit
00eda60fdc
|
@ -103,12 +103,8 @@ class User < ActiveRecord::Base
|
||||||
if is_new?
|
if is_new?
|
||||||
return false
|
return false
|
||||||
elsif obj.is_a?(Story)
|
elsif obj.is_a?(Story)
|
||||||
if obj.is_downvotable?
|
# user can unvote
|
||||||
return true
|
return obj.vote == -1
|
||||||
elsif obj.vote == -1
|
|
||||||
# user can unvote
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
elsif obj.is_a?(Comment)
|
elsif obj.is_a?(Comment)
|
||||||
if obj.is_downvotable?
|
if obj.is_downvotable?
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in a new issue