Sha256: 8461e5aef0eb0137b391e77d0512535c97febc4028343c7edc7932bf98b2d602
Contents?: true
Size: 701 Bytes
Versions: 3
Compression:
Stored size: 701 Bytes
Contents
module DBViewCTI module Model module Extensions extend ActiveSupport::Concern module ClassMethods def cti_base_class self.class_eval { include(DBViewCTI::Model::CTI) } @cti_base_class = true end def cti_derived_class # there is no need to include DBViewCTI::Model::CTI in derived classes # (as we do in cti_base_class), since it is included in the base class # and we inherit from that @cti_derived_class = true self.table_name = DBViewCTI::Names.view_name(self) self.superclass.cti_register_descendants(self.name) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dbview_cti-0.0.3 | lib/db_view_cti/model/extensions.rb |
dbview_cti-0.0.2 | lib/db_view_cti/model/extensions.rb |
dbview_cti-0.0.1 | lib/db_view_cti/model/extensions.rb |