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/gentoo.rb
class Gentoo < Operatingsystem
PXEFILES = {}
class << self
delegate :model_name, :to => :superclass
end
def mediumpath(host)
end
......
def display_family
"Gentoo"
end
def self.model_name
superclass.model_name
end
end

Also available in: Unified diff