tracks debate visits from the controller
This commit is contained in:
@@ -34,9 +34,6 @@ class Debate < ActiveRecord::Base
|
||||
scope :sort_by_most_commented, -> { order(comments_count: :desc) }
|
||||
scope :sort_by_random, -> { order("RANDOM()") }
|
||||
|
||||
# Ahoy setup
|
||||
visitable # Ahoy will automatically assign visit_id on create
|
||||
|
||||
def likes
|
||||
cached_votes_up
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user