suite
This commit is contained in:
parent
ebec6482b8
commit
6291ba461b
@ -8,7 +8,7 @@ class Comment < ActiveRecord::Base
|
||||
validates :pseudo, :presence => true
|
||||
validates :comment, :presence => true
|
||||
|
||||
scope :recents, where("enabled = ?",true ).order("created_at ASC")
|
||||
scope :recents, -> {where("enabled = ?",true ).order("created_at ASC")}
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user