comments
This commit is contained in:
parent
f38a6ca985
commit
1795f84be8
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user