Skip to content

Commit 42dca4a

Browse files
author
Daniel O'Connor
committed
Merge remote-tracking branch 'origin/master' into 0.17.x
2 parents a79be52 + 32dbca1 commit 42dca4a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

app/views/home/_assets_menu.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
trigger : "#asset",
44
fade : 500,
55
appear : 500,
6-
menu_items: [ #{sort_by_assets.join(",")} ]
6+
menu_items: [ #{raw sort_by_assets.join(",")} ]
77
});

db/migrate/20180102075234_add_account_counter_caches.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ def change
1414

1515
def data
1616
Account.all.each do |account|
17-
account.update_columns(
17+
Account.update_counters(
18+
account.id,
1819
contacts_count: account.contacts.count,
1920
opportunities_count: account.opportunities.count
2021
)

spec/views/home/options.js.haml_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
render
2525

2626
expect(rendered).to include("$('#options').html")
27-
expect(rendered).to include("$('#asset').html('campaign')")
27+
expect(rendered).to include("$(\\\'#asset\\\').html(\\\'campaign\\\')")
2828
expect(rendered).to include("crm.flip_form('options')")
2929
expect(rendered).to include("crm.set_title('title', 'Recent Activity Options')")
3030
end

0 commit comments

Comments
 (0)