app/models/macro.rb
# Apply the remove macro to the domain
Apply the remove macro to the domain
Apply the remove macro to the domain
def macro_remove( domain, step )
    domain.records.all( :conditions => { :type => step.record_type }).each do |record|
      record.destroy if step.name == '*' || record.shortname == step.name
    end
  end
def macro_remove ( domain , step ) domain . records . all ( :conditions => { :type => step . record_type } ) . each do | record | record . destroy if step . name == '*' || record . shortname == step . name end end
Apply the remove macro to the domain
Apply the remove macro to the domain
# wild card or shortname match
domain
<not_specific>
step
<not_specific>