Commit 6b73341b authored by John E. Vincent's avatar John E. Vincent

Inital work on Issue #16

parent 78405b0e
...@@ -90,8 +90,9 @@ module Noah ...@@ -90,8 +90,9 @@ module Noah
#pub_category = "#{db}:noah.#{self.class.to_s}[#{name}].#{meth}" #pub_category = "#{db}:noah.#{self.class.to_s}[#{name}].#{meth}"
# TODO # TODO
# Add a url in the message body containing the URL to the item # 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}" 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 # 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 # good example is in [Noah::Ephemeral] where it's used to check for/clean up expired ephemeral nodes entries
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment