Sha256: 358b03c83309ca17d4732051c7b3951e25d542c4b7662bd7775577c7c0f9c733
Contents?: true
Size: 737 Bytes
Versions: 1
Compression:
Stored size: 737 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) cti_redefine_associations end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dbview_cti-0.1.0 | lib/db_view_cti/model/extensions.rb |