Re: Is old school STI broken? How would you do the same now?


#1

-------------- Original message ----------------------
From: Chris T removed_email_address@domain.invalid

Have you declared the list model in application.rb?

class ApplicationController < ActionController::Base
model :list

You need to do this so the application knows about StaticList class (It
will only know about the subclass once it’s read the list.rb model
declaration)
I Might Be Wrong, but I don’t think you don’t need to do this. Just name
the file static_list.rb – active_support overrides Object.const_missing
so that constant references get snake-cased and require’d.

Devin