Skip to content

Instantly share code, notes, and snippets.

Created February 21, 2017 06:15
What would you like to do?
Have ActiveRecord#to_s print out the id. More useful than printing out the Ruby object id.
class ActiveRecord::Base
def to_s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment