Module: Opinio::OpinioModel::RepliesSupport

Defined in:
lib/opinio/opinio_model.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



57
58
59
60
61
62
# File 'lib/opinio/opinio_model.rb', line 57

def self.included(base)
  base.class_eval do
    validate :cannot_be_comment_of_a_comments_comment
    opinio_subjectum :order => 'created_at ASC'
  end
end