forked from OpenNeo/impress
21 lines
333 B
Ruby
21 lines
333 B
Ruby
class ParentSwfAssetRelationship < ActiveRecord::Base
|
|
set_table_name 'parents_swf_assets'
|
|
|
|
belongs_to :swf_asset
|
|
|
|
def item
|
|
parent
|
|
end
|
|
|
|
def item=(replacement)
|
|
self.parent_id = replacement.id
|
|
end
|
|
|
|
def pet_type
|
|
parent
|
|
end
|
|
|
|
def pet_type=(replacement)
|
|
self.parent_id = replacement.id
|
|
end
|
|
end
|