From 6b73341b8380af65d9acb5922ab77b408d605858 Mon Sep 17 00:00:00 2001 From: "John E. Vincent" Date: Sat, 8 Oct 2011 23:16:22 -0400 Subject: [PATCH] Inital work on Issue #16 --- lib/noah/models.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/noah/models.rb b/lib/noah/models.rb index f011771..c0b82a5 100644 --- a/lib/noah/models.rb +++ b/lib/noah/models.rb @@ -90,8 +90,9 @@ def dbnum #pub_category = "#{db}:noah.#{self.class.to_s}[#{name}].#{meth}" # TODO # Add a url in the message body containing the URL to the item + url = "/#{self.class_to_lower}s/#{name}" pub_category = "#{self.patternize_me}" - Ohm.redis.publish(pub_category, self.to_hash.merge({"action" => meth, "pubcategory" => pub_category}).to_json) + Ohm.redis.publish(pub_category, self.to_hash.merge({"action" => meth, "pubcategory" => pub_category, "path" => url}).to_json) # The following provides a post post-action hook. It allows a class to provide it's own handling after the fact # good example is in [Noah::Ephemeral] where it's used to check for/clean up expired ephemeral nodes entries