Skip to content

Instantly share code, notes, and snippets.

@Bongs
Bongs / abstractable.rb
Created December 21, 2017 10:25
Ruby on Rails - Abstract class and STI. Make any class an Abstract class at any level of STI. Raise error when abstract class instantiated.
module Abstractable
extend ActiveSupport::Concern
included do
class << self
attr_accessor :isabstract
end
@isabstract = true
end