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/concerns/puppetclass_total_hosts.rb
after_save :update_total_hosts
after_destroy :update_total_hosts
def update_total_hosts
puppetclass.update_total_hosts
end
delegate :update_total_hosts, :to => :puppetclass
end
end
end

Also available in: Unified diff