module ActiveRecord::Inheritance::ClassMethods

def abstract_class?

Returns whether this class is an abstract class or not.
def abstract_class?
  @abstract_class == true
end