#require 'fiona7/write_obj' module Fiona7 class EditedObj < WriteObj self.configure_for_content(:edited) has_many :children, :class_name => self.name, :foreign_key => 'parent_obj_id' belongs_to :parent, :class_name => self.name, :foreign_key => 'parent_obj_id' default_scope { where('suppress_export = 0 AND obj_class NOT IN (?)', ['X_Generic', 'X_Image', 'X_Container']) } # disable STI self.inheritance_column = :_type_disabled end end