Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
Noah
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Noah
Commits
6b73341b
Commit
6b73341b
authored
Oct 08, 2011
by
John E. Vincent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inital work on Issue #16
parent
78405b0e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
models.rb
lib/noah/models.rb
+2
-1
No files found.
lib/noah/models.rb
View file @
6b73341b
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment