Update customer.rb

This commit is contained in:
2016-04-29 08:47:39 -04:00
parent 22241a3be4
commit 92baf905cd

View File

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