chromesetting
daiao 5 years ago
parent 562a1fd49a
commit e69b4b7a37

@ -467,7 +467,7 @@ class ApplicationController < ActionController::Base
list = []
mirrors = MirrorRepository.select([:id, :type_name, :description]).published_main_mirror
mirrors.try(:each) do |mirror|
list << {id: mirror.id, type_name: mirror.type_name, description: mirror.try(:description)}
list << {id: mirror.id, type_name: mirror.type_name, description: mirror.try(:description), mirror_name: mirror.name}
end
list
end
@ -477,7 +477,7 @@ class ApplicationController < ActionController::Base
list = []
mirrors = MirrorRepository.select([:id, :type_name, :description]).published_small_mirror
mirrors.try(:each) do |mirror|
list << {id: mirror.id, type_name: mirror.type_name, description: mirror.description}
list << {id: mirror.id, type_name: mirror.type_name, description: mirror.description, mirror_name: mirror.name}
end
list
end

Loading…
Cancel
Save