This commit is contained in:
Nicolas Bally 2015-02-22 15:05:11 +01:00
parent f38a6ca985
commit 1795f84be8

View File

@ -1,16 +0,0 @@
# -*- encoding : utf-8 -*-
class Comment < ActiveRecord::Base
include ActsAsCommentable::Comment
belongs_to :commentable, :polymorphic => true
validates :pseudo, :presence => true
validates :comment, :presence => true
scope :recents, where("enabled = ?",true ).order("created_at ASC")
end