Project

General

Profile

« Previous | Next » 

Revision abd8f1d1

Added by Daniel Lobato Garcia over 9 years ago

Refs #3809 - Remove cops for empty lines

View differences:

app/helpers/audits_helper.rb
module AuditsHelper
MainObjects = %w(Host Hostgroup User Operatingsystem Environment Puppetclass Parameter Architecture ComputeResource ConfigTemplate ComputeProfile ComputeAttribute
Location Organization Domain Subnet SmartProxy AuthSource Image Role Usergroup Bookmark ConfigGroup)
......
end
private
def main_object?(audit)
type = audit.auditable_type.split("::").last rescue ''
MainObjects.include?(type)
end
end

Also available in: Unified diff