Module: TemporalTables::TemporalClass::ClassMethods

Defined in:
lib/temporal_tables/temporal_class.rb

Instance Method Summary collapse

Instance Method Details

#descends_from_active_record?Boolean

Returns:

  • (Boolean)


66
67
68
# File 'lib/temporal_tables/temporal_class.rb', line 66

def descends_from_active_record?
	superclass.descends_from_active_record?
end

#orig_classObject



62
63
64
# File 'lib/temporal_tables/temporal_class.rb', line 62

def orig_class
	name.sub(/History$/, "").constantize
end