title: How to get the class name from an instance variable in Rails?
body: <p>If I have <code>@commentable</code>, which could either be a Post or Article, can I extract the model name from the instance variable?</p>