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/redhat.rb
end
end
# Override the class representation, as this breaks many rails helpers
def class
Operatingsystem
end
# The PXE type to use when generating actions and evaluating attributes. jumpstart, kickstart and preseed are currently supported.
def pxe_type
"kickstart"
......
s.strip!
s.blank? ? description : s
end
def self.model_name
superclass.model_name
end
end

Also available in: Unified diff