From d92a194ff79bc2a3f1b9227b25792b1cec0bef33 Mon Sep 17 00:00:00 2001 From: Milan Zazrivec Date: Tue, 12 Jun 2018 16:57:06 +0200 Subject: [PATCH] Add display name for guest device --- app/models/guest_device.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/guest_device.rb b/app/models/guest_device.rb index bfe0ee5db95..cd4791532a2 100644 --- a/app/models/guest_device.rb +++ b/app/models/guest_device.rb @@ -26,4 +26,8 @@ def self.with_ethernet_type def self.with_storage_type where(:device_type => "storage") end + + def self.display_name(number = 1) + n_('Guest Device', 'Guest Devices', number) + end end