Sha256: 46c7360ccd422ac520b0454b8bdfe34493a146157a8cbfbf2ef41cb41aaa58e9
Contents?: true
Size: 214 Bytes
Versions: 15
Compression:
Stored size: 214 Bytes
Contents
class Object # OPTIMIZE: Probably there's a better way to verify if a model responds # to an STI pattern. def self.is_sti? (name != base_class.name) && base_class.descends_from_active_record? end end
Version data entries
15 entries across 15 versions & 2 rubygems