Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Feature [#39518117] Re-add company switcher

Removes unneeded modification to company decorator.
  • Loading branch information...
commit 0fb96a4f5ed26a66692ce165a8b5e5964c6daae1 1 parent dba1753
Bertrand Chardon Veejay authored
Showing with 0 additions and 1 deletion.
  1. +0 −1  app/decorators/company_decorator.rb
1  app/decorators/company_decorator.rb
View
@@ -52,7 +52,6 @@ def users_json
json.array!(company_memberships) do |json, membership|
user = membership.user.decorate
json.(user, :id, :first_name, :last_name, :full_name, :email, :gravatar, :current_company_id)
- json.companies company_memberships.map(&:company_id).uniq
preferences = user.user_preferences
if preferences.present?
json.preferences preferences
Please sign in to comment.
Something went wrong with that request. Please try again.