impress/app/models/parent_swf_asset_relationship.rb

22 lines
333 B
Ruby
Raw Normal View History

class ParentSwfAssetRelationship < ActiveRecord::Base
set_table_name 'parents_swf_assets'
belongs_to :swf_asset
def item
parent
end
def item=(replacement)
2010-05-16 17:45:30 -07:00
self.parent_id = replacement.id
end
def pet_type
parent
end
def pet_type=(replacement)
self.parent_id = replacement.id
end
end