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

@ -1,5 +1,4 @@
class PostReply < ActiveRecord::Base
belongs_to :post
belongs_to :reply, class_name: 'Post'