Permalink
Browse files

Rename some stats

  • Loading branch information...
1 parent 406f7e2 commit 2f251e3e182e2d7b007347a46dc21ab477f991ed @mutle committed Dec 28, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 app/controllers/channels_controller.rb
  2. +1 −1 app/controllers/posts_controller.rb
@@ -51,9 +51,9 @@ def new
def create
@channel = Channel.create(params[:channel].merge(:user_id => current_user.id, :markdown => current_user.markdown?))
notification :channel_create, @channel
- increment_metric "posts"
+ increment_metric "posts.all"
increment_metric "posts.user.#{current_user.id}"
- increment_metric "channels"
+ increment_metric "channels.all"
increment_metric "channels.id.#{@channel.id}.posts"
increment_metric "channels.user.#{current_user.id}"
@@ -8,7 +8,7 @@ class PostsController < ApplicationController
def create
@post = @channel.posts.create(:body => params[:post][:body], :user_id => current_user.id, :markdown => current_user.markdown?)
notification :post_create, @post
- increment_metric "posts"
+ increment_metric "posts.all"
increment_metric "channels.id.#{@channel.id}.posts"
increment_metric "posts.user.#{current_user.id}"

0 comments on commit 2f251e3

Please sign in to comment.