Update customer.rb

This commit is contained in:
2016-04-29 08:45:44 -04:00
parent ed27fc559d
commit 22241a3be4

View File

@@ -18,7 +18,7 @@ class Customer < ActiveRecord::Base
attr_accessible :name
validates_presence_of :id, :name
after_initialize :get_details
after_touch :get_details
self.primary_key = :id