minor cleanup, using AR querying DSL over raw SQL in some places

This commit is contained in:
Gosha Arinich
2013-02-28 21:54:12 +03:00
parent 93a257707e
commit 6e5399d544
41 changed files with 230 additions and 341 deletions

View File

@@ -2,7 +2,6 @@ require_dependency 'discourse'
require 'ipaddr'
class TopicLinkClick < ActiveRecord::Base
belongs_to :topic_link, counter_cache: :clicks
belongs_to :user
@@ -54,5 +53,4 @@ class TopicLinkClick < ActiveRecord::Base
result
end
end