Update customer.rb

This commit is contained in:
2016-05-16 17:30:31 -04:00
parent c9c49c9425
commit eeccece2a7

View File

@@ -19,9 +19,9 @@ class Customer < ActiveRecord::Base
validates_presence_of :id, :name
after_initialize :pull
before_save :create_customer
after_save :push
after_initialize :pull, unless: :new_record?
#before_save :create_customer, unless: :new_record?
after_save :push, unless: :new_record?
self.primary_key = :id