Update customer.rb

This commit is contained in:
2016-05-11 12:18:41 -04:00
parent cd4e21daf4
commit d48df86a49

View File

@@ -20,7 +20,7 @@ class Customer < ActiveRecord::Base
validates_presence_of :id, :name
after_initialize :pull
after_save :push
before_save :push
self.primary_key = :id