Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Rename 'share_count' to 'conversion_count' for whatsapp shares
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuuleh committed Jun 8, 2018
1 parent 4f6565f commit aeafe1d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/javascript/member-facing/track_shares.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import $ from 'jquery';
//TODO: Fix this import :) And rename / modify this file to hide the whatsapp button if the person is not on a mobile device
import MobileCheck from './backbone/mobile_check';

$(() => {
Expand Down
1 change: 1 addition & 0 deletions app/models/share/whatsapp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# updated_at :datetime not null
# click_count :integer
# share_count :integer
# conversions :integer

class Share::Whatsapp < ApplicationRecord
include Share::Variant
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20180507153911_create_share_whatsapps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def change
t.string :text
t.integer :button_id
t.integer :click_count
t.integer :share_count
t.integer :conversion_count

t.timestamps null: false
end
Expand Down
5 changes: 4 additions & 1 deletion spec/factories/share_whatsapps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@
# button_id :integer
# created_at :datetime not null
# updated_at :datetime not null
#
# click_count :integer
# conversion_count :integer

FactoryGirl.define do
factory :share_whatsapp, class: 'Share::Whatsapp' do
id 1
page nil
text 'MyMessage {LINK}'
button_id 1
click_count 1
conversion_count 1
end
end
2 changes: 1 addition & 1 deletion spec/models/share/whatsapp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# created_at :datetime not null
# updated_at :datetime not null
# click_count :integer
# share_count :integer
# conversion_count :integer

require 'rails_helper'

Expand Down

0 comments on commit aeafe1d

Please sign in to comment.