search for: table_must_exist

Displaying 1 result from an estimated 1 matches for "table_must_exist".

2007 Jan 04
5
uninitialized constant oddities
...ntity < ActiveRecord::Base): ---- snip ---- def count return super if subclass? subclasses.inject(0) { |sum, klass| sum += klass.count } end def subclass? subclasses.include? self end # here''s where the uninitialized constant comes in def subclasses(table_must_exist = true) Image::Base.subclasses table_must_exist end ---- snip ---- any ideas on what might cause this (mis-)behaviour would be greatly appreciated. TIA & cheers jens -- Jens Wille, Dipl.-Bibl. (FH) prometheus - Das verteilte digitale Bildarchiv für Forschung & Lehre An St. Laurent...