I ran into a case where I wanted to customize the output of the inspect 
method to include attributes that I've defined (which are not associated 
with database columns) to be displayed in the inspect output. Currently, 
the attributes for inspection are collected by calling 
ActiveRecord::ModelSchema::ClassMethods#column_names. 
It would be nice to instead use a template method that allowed additional, 
non-database backed attributes to be included without having to rewrite the 
inspect method.

Pseudo code 
<https://gist.github.com/donald-s/e8795b210b1e0fad1d489c3f642ac1e3>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to