Sha256: c742e73e62d9c0aa7ba3834394aa999c105eb0f724f1cc26f53ba7a387014cbe
Contents?: true
Size: 646 Bytes
Versions: 21
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
21 entries across 21 versions & 1 rubygems