class BaseAttribute < ActiveRecord::Base
Otherwise STI might not work properly. In my case for every inherited class I was looking for another one based on their names and extending them with some module which was defining scopes. Unofortunatelly I was getting errors that some methods was called on NilClass when I tried to use those scopes. Calling the super helped. Another thing is that with out using
subclassesalso works badly.