Skip to content

Commit b04566e

Browse files
author
Vidas P
committed
Fix deprecations after rails upgrade
1 parent fd6fc44 commit b04566e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/controllers/agents_controller.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def table
4343
last_message_at: agent.last_message_at&.to_time&.to_i,
4444
issues: agent.issues?,
4545
receivers: agent.receivers.map { |receiver| { id: receiver.id } },
46-
action_menu: AgentsController.render(template: 'agents/_action_menu.html',
46+
action_menu: AgentsController.render(template: 'agents/_action_menu',
47+
formats: [:html],
4748
layout: false,
4849
locals: {
4950
right: true, agent: agent,

spec/rails_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
3636
config.fixture_path = "#{::Rails.root}/spec/fixtures"
37+
config.file_fixture_path = "#{::Rails.root}/spec/fixtures"
3738

3839
# If you're not using ActiveRecord, or you'd prefer not to run each of your
3940
# examples within a transaction, remove the following line or assign false

0 commit comments

Comments
 (0)