mirror of
https://github.com/redmine/redmine.git
synced 2025-11-10 07:16:03 +01:00
use "do end" instead of {} at AuthSourcesController
git-svn-id: http://svn.redmine.org/redmine/trunk@20275 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -78,7 +78,7 @@ class AuthSourcesController < ApplicationController
|
|||||||
|
|
||||||
def autocomplete_for_new_user
|
def autocomplete_for_new_user
|
||||||
results = AuthSource.search(params[:term])
|
results = AuthSource.search(params[:term])
|
||||||
render :json => results.map {|result|
|
json = results.map do |result|
|
||||||
{
|
{
|
||||||
'value' => result[:login],
|
'value' => result[:login],
|
||||||
'label' => "#{result[:login]} (#{result[:firstname]} #{result[:lastname]})",
|
'label' => "#{result[:login]} (#{result[:firstname]} #{result[:lastname]})",
|
||||||
@@ -88,7 +88,8 @@ class AuthSourcesController < ApplicationController
|
|||||||
'mail' => result[:mail].to_s,
|
'mail' => result[:mail].to_s,
|
||||||
'auth_source_id' => result[:auth_source_id].to_s
|
'auth_source_id' => result[:auth_source_id].to_s
|
||||||
}
|
}
|
||||||
}
|
end
|
||||||
|
render :json => json
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
Reference in New Issue
Block a user