# File lib/tramp/base.rb, line 19 def primary_key @primary_key ||= model_attributes.detect {|k, v| v.primary_key? }[0] end