Sha256: 77f515a571c2e76c6c8de7abaa6de7ddc9e8a77f046bf72a222ab7b059f73915
Contents?: true
Size: 646 Bytes
Versions: 14
Compression:
Stored size: 646 Bytes
Contents
module RailsConnector # This module is included if the <tt>:comments</tt> addon is # enabled: # RailsConnector::Configuration.enable(:comments) module Commentable # returns all Comments for this Obj. def comments Comment.where(:obj_id => id).order("created_at") end # Returns +true+ by default. # Implement your own conditions by overwriting this method in your {ObjExtensions}. def allow_comments? true end # Returns +true+ by default. # Implement your own conditions by overwriting this method in your {ObjExtensions}. def allow_anonymous_comments? true end end end
Version data entries
14 entries across 14 versions & 1 rubygems