Update customer.rb

This commit is contained in:
2016-04-29 08:56:05 -04:00
parent 92baf905cd
commit 090fbba6f5

View File

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