! ! Unigraphics Modeling Application Menu File ! ! ! VERSION 120 UG6.0 ! *************** Changes to the Menubar itself *************** EDIT UG_GATEWAY_MAIN_MENUBAR ! *************** Format Menu *************** AFTER UG_ARRANGE_GROUP BUTTON UG_MODELI
描述
给定以下类定义:
class Address
belongs_to :addressable , :polymorphic => true
end
class Person
has_many :addresses , :as => addressable
end
class Vendor < Person
end
并给出以下代码:
vendor = Vendor . create ( ... )
address = vendor . addresses .