class StateOfTheNation::ConflictError
Public Class Methods
new(record, conflicting_records)
click to toggle source
Calls superclass method
# File lib/state_of_the_nation/errors/conflict_error.rb, line 3 def initialize(record, conflicting_records) super(<<-MSG.strip_heredoc) Attempted to commit record #{record.inspect} But encountered a conflict with timestamps on the following records #{conflicting_records.map { |record| "- #{record.inspect}" }.join("\n")} MSG end