Created
May 4, 2012 16:55
-
-
Save npj/2596197 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PostObserver | |
def after_save(post) | |
Slug[post.slug] = post.id.to_s | |
return true | |
end | |
end |
Ah never mind. I've gotten it. Its a hash mapping for redis. Almost lost me there.
Your reds tutorial is excellent!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you clarify line 3? It looks like a variable assignment, method call assignment and don't know what else rolled up in one.
Thanks.