@@ -1,6 +1,6 @@ |
||
1 | 1 |
<% if @agent.try(:oauthable?) %> |
2 | 2 |
<div class="form-group type-select"> |
3 | 3 |
<%= label_tag :service %> |
4 |
- <%= select_tag 'agent[service_id]', options_for_select(@agent.valid_services(current_user).collect { |s| ["(#{s.provider}) #{s.name}", s.id]}, @agent.service_id), class: 'form-control' %> |
|
4 |
+ <%= select_tag 'agent[service_id]', options_for_select(@agent.valid_services_for(current_user).collect { |s| ["(#{s.provider}) #{s.name}", s.id]}, @agent.service_id), class: 'form-control' %> |
|
5 | 5 |
</div> |
6 | 6 |
<% end %> |