Project

General

Profile

« Previous | Next » 

Revision 9a9ec5b1

Added by Daniel Lobato Garcia over 8 years ago

Refs #3809 - Enable Rails delegate cop

View differences:

app/models/operatingsystems/suse.rb
class Suse < Operatingsystem
PXEFILES = {:kernel => "linux", :initrd => "initrd"}
class << self
delegate :model_name, :to => :superclass
end
def pxe_type
"yast"
end
......
s.strip!
s.blank? ? description : s
end
def self.model_name
superclass.model_name
end
end

Also available in: Unified diff