app/models/record.rb
# Restrict the SOA serial number updates to just one during the execution
# of the block. Useful for batch updates to a zone
Restrict the SOA serial number updates to just one during the execution
of the block. Useful for batch updates to a zone
Restrict the SOA serial number updates to just one during the execution of the block . Useful for batch updates to a zone
def batch
      raise ArgumentError, "Block expected" unless block_given?
      self.batch_soa_updates = []
      yield
      self.batch_soa_updates = nil
    end
def batch raise ArgumentError , "Block expected" unless block_given? self . batch_soa_updates = [ ] yield self . batch_soa_updates = nil end
Restrict the SOA serial number updates to just one during the execution
of the block.
Restrict the SOA serial number updates to just one during the execution of the block .