impress/app/models/parent_swf_asset_relationship.rb

22 lines
335 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_state
2010-05-16 17:45:30 -07:00
parent
end
def pet_state=(replacement)
2010-05-16 17:45:30 -07:00
self.parent_id = replacement.id
end
end