Check out the conditional callback :if and :unless
before_save :check_changed, unless: :new_record?
Or you could use 'new_record?' in your method
def check_changed
return if new_record?
puts "Period Contributions Changed? : #{period_contributions_changed?}"
puts "Total Contributions Changed? : #{total_contributions_changed?}"
puts "Period Expenditures Changed? : #{period_expenditures_changed?}"
puts "Total Expenditures Changed? : #{total_expenditures_changed?}"
end
Edit: Should also check out
after_save :check_changed, on: [:update]
Docs are here