Skip to content
Create a gist now

Instantly share code, notes, and snippets.

class PostObserver
def after_save(post)
Slug[post.slug] = post.id.to_s
return true
end
end
@alvinkatojr

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.

@alvinkatojr

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
Something went wrong with that request. Please try again.