diff options
author | Vinnie Okada <vokada@mrvinn.com> | 2015-02-15 20:50:53 -0700 |
---|---|---|
committer | Vinnie Okada <vokada@mrvinn.com> | 2015-02-15 20:50:53 -0700 |
commit | e0f61a59b4e9be1fc2f20320a0400793318b8a9f (patch) | |
tree | 24072608379d1322c84e39aa022f3da748b050bd /app/controllers/profiles_controller.rb | |
parent | 9e0467c38efb1a279b87cf17df5fb1b9b85aa0fe (diff) | |
download | gitlab-ce-e0f61a59b4e9be1fc2f20320a0400793318b8a9f.tar.gz |
Use shorter map() syntax
Diffstat (limited to 'app/controllers/profiles_controller.rb')
-rw-r--r-- | app/controllers/profiles_controller.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb index e3e36505f0b..a7863aba756 100644 --- a/app/controllers/profiles_controller.rb +++ b/app/controllers/profiles_controller.rb @@ -16,9 +16,7 @@ class ProfilesController < ApplicationController def applications @applications = current_user.oauth_applications @authorized_tokens = current_user.oauth_authorized_tokens - @authorized_apps = @authorized_tokens.map do |token| - token.application - end.uniq + @authorized_apps = @authorized_tokens.map(&:application).uniq end def update |