Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Inital work on Issue #16
Browse files Browse the repository at this point in the history
  • Loading branch information
lusis committed Oct 9, 2011
1 parent 78405b0 commit 6b73341
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/noah/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b73341

Please sign in to comment.