I ran into a use case where I'd like to include non-database backed attributes in the inspect output of AR. Currently, the attributes for inspection are collected via
ActiveRecord::ModelSchema::ClassMethods#column_names meaning only database-backed attributes are collected. It would be nice to instead use a template method that allowed additional attributes to be included in the inspection string 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.
