Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename some stats

  • Loading branch information...
commit 2f251e3e182e2d7b007347a46dc21ab477f991ed 1 parent 406f7e2
@mutle authored
View
4 app/controllers/channels_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}"
View
2  app/controllers/posts_controller.rb
@@ -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}"
Please sign in to comment.
Something went wrong with that request. Please try again.