Revision 9a9ec5b1
Added by Daniel Lobato Garcia over 8 years ago
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
Refs #3809 - Enable Rails delegate cop