lib/place/comment.rb
# Return a calculated cid for the comment
Return a calculated cid for the comment
Return a calculated cid for the comment
def cid
    chunks = self.url.split('/')
	wid = chunks[-2]
	comment_part = chunks[-1]
	comment_part =~ /comment-(\d+).xml/
	"#{wid}#{$1}"
  end
def cid chunks = self . url . split ( '/' ) wid = chunks [ - 2 ] comment_part = chunks [ - 1 ] comment_part =~ / comment-( \d +).xml / "#{wid}#{$1}" end
Return a calculated cid for the comment
Return a calculated cid for the comment