diff --git a/app/models/customer.rb b/app/models/customer.rb index e794714..16ea7a2 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -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