How can I get the class name of a model I am including a concern into?
I am creating a concern for a scope as described in here https://stackoverflow.com/a/14483808/1715035 but need the model name for polymorphic search.
self.table_name works fine and so does self.table_name.singularize.titleize.gsub(/\s+/, "") but maybe theres an easier way to get the class name.
You can use the
namemethod as you would in the class itself.