Project

General

Profile

« Previous | Next » 

Revision 95a66717

Added by Marek Hulán over 10 years ago

Fixes #3962 - Refactor class overwriting

View differences:

app/models/operatingsystems/suse.rb
PXEFILES = {:kernel => "linux", :initrd => "initrd"}
# Override the class representation, as this breaks many rails helpers
def class
Operatingsystem
end
def pxe_type
"yast"
end
......
def display_family
"SUSE"
end
def self.model_name
superclass.model_name
end
end

Also available in: Unified diff