Module ActiveRecord::Acts::MuckComment::InstanceMethods
In: lib/active_record/acts/muck_comment.rb

All the methods available to a record that has had acts_as_muck_comment specified.

Methods

Public Instance methods

override this method to change the way permissions are handled on comments

[Source]

    # File lib/active_record/acts/muck_comment.rb, line 71
71:         def can_edit?(user)
72:           return true if check_user(user)
73:           false
74:         end

helper method to check if a comment has children

[Source]

    # File lib/active_record/acts/muck_comment.rb, line 66
66:         def has_children?
67:           self.children.size > 0 
68:         end

[Validate]