Module: TemporalTables::TemporalClass::STIWithHistory
- Defined in:
- lib/temporal_tables/temporal_class.rb
Instance Method Summary collapse
Instance Method Details
#find_sti_class(type_name) ⇒ Object
54 55 56 57 58 |
# File 'lib/temporal_tables/temporal_class.rb', line 54 def find_sti_class(type_name) sti_class = super(type_name) sti_class = sti_class.history unless sti_class.respond_to?(:orig_class) sti_class end |
#sti_name ⇒ Object
50 51 52 |
# File 'lib/temporal_tables/temporal_class.rb', line 50 def sti_name super.sub /History$/, "" end |