Im trying to have several model classes inherit from a new class, which
in turn inherits from ActiveRecord::Base. The problem is that my
controller’s database calls to the original model classes now look for
the information in the new class’s database table, even though it doesnt
class RawDatum inherits from class ArchModel
RawDataController calls RawDatum.all
generates SQL: “SELECT “arch_models”.* FROM “arch_models” ORDER BY
correct SQL: “SELECT “raw_data”.* FROM “raw_data” ORDER BY
The new class is for providing methods that process data from other
models, and to make the corresponding method calls short and simple. It
doesn’t need its own database table at all. The desired functionality
already worked before, but the implementation was badly structured.
Does anyone have an idea on how to make this work?