From 8970b8532c8d40786c3c00f9b77a5e74dfa53a2f Mon Sep 17 00:00:00 2001 From: hellekin Date: Fri, 9 Oct 2020 13:37:55 +0200 Subject: Remove bork agent_selector_form helper --- app/helpers/agents_helper.rb | 7 ------- app/views/application/_user_info.html.erb | 4 ---- 2 files changed, 11 deletions(-) (limited to 'app') diff --git a/app/helpers/agents_helper.rb b/app/helpers/agents_helper.rb index a02fb7a..7e54438 100644 --- a/app/helpers/agents_helper.rb +++ b/app/helpers/agents_helper.rb @@ -1,9 +1,2 @@ module AgentsHelper - # Form to select an Agent - def agent_selector_form - form_for current_agent, url: '/my/current_agent', method: :patch do |f| - f.submit('select') - f.select(:id, options_for_select(current_user.agents.map { |a| [a.name, a.id] }), selected: current_agent.id) - end - end end diff --git a/app/views/application/_user_info.html.erb b/app/views/application/_user_info.html.erb index be3b6c5..048e6fb 100644 --- a/app/views/application/_user_info.html.erb +++ b/app/views/application/_user_info.html.erb @@ -3,10 +3,6 @@ <% if current_user.present? %> <%= image_tag current_user.avatar_url, alt: current_user.username %> -- cgit v1.2.3