|
|
@ -467,7 +467,7 @@ class ApplicationController < ActionController::Base
|
|
|
|
list = []
|
|
|
|
list = []
|
|
|
|
mirrors = MirrorRepository.select([:id, :type_name, :description]).published_main_mirror
|
|
|
|
mirrors = MirrorRepository.select([:id, :type_name, :description]).published_main_mirror
|
|
|
|
mirrors.try(:each) do |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
|
|
|
|
end
|
|
|
|
list
|
|
|
|
list
|
|
|
|
end
|
|
|
|
end
|
|
|
@ -477,7 +477,7 @@ class ApplicationController < ActionController::Base
|
|
|
|
list = []
|
|
|
|
list = []
|
|
|
|
mirrors = MirrorRepository.select([:id, :type_name, :description]).published_small_mirror
|
|
|
|
mirrors = MirrorRepository.select([:id, :type_name, :description]).published_small_mirror
|
|
|
|
mirrors.try(:each) do |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
|
|
|
|
end
|
|
|
|
list
|
|
|
|
list
|
|
|
|
end
|
|
|
|
end
|
|
|
|