class MySuperClass < ActiveRecord::Base
self.abstract_class = true
end
class MyChild < MySuperClass
end
MySuperClass.new # => NotImplementedError: MySuperClass is an abstract class and cannot be instantiated.
class MySuperClass < ActiveRecord::Base
self.abstract_class = true
end
class MyChild < MySuperClass
end
MySuperClass.new # => NotImplementedError: MySuperClass is an abstract class and cannot be instantiated.