# File lib/facet/string/format.rb, line 48 def foreign_key(separate_class_name_and_id_with_underscore = true) @self.demodulize.underscore + ( separate_class_name_and_id_with_underscore ? "_id" : "id") end