Skip to content

Commit d988a3f

Browse files
committed
only send to mixpanel in prod
1 parent f548c83 commit d988a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/attribute_fields_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def initialize_object
1919

2020
Mixpanel::Tracker.new(Rails.application.config.mixpanel_token).track(current_user.id, 'created attribute', {
2121
'content_type': params[:entity_type]
22-
})
22+
}) if Rails.env.production?
2323

2424
@content = AttributeField.new(label: content_params[:label]).tap do |f|
2525
f.attribute_category_id = category.id

0 commit comments

Comments
 (0)