From bcb5644b128f363496f4e8fc8ab55103cc58338e Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 13 Jan 2012 16:02:14 -0600 Subject: [PATCH] stop autosaving biology swf rels --- app/models/pet_state.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/pet_state.rb b/app/models/pet_state.rb index de3c05c0..27dedff4 100644 --- a/app/models/pet_state.rb +++ b/app/models/pet_state.rb @@ -3,7 +3,8 @@ class PetState < ActiveRecord::Base has_many :contributions, :as => :contributed # in case of duplicates being merged has_many :outfits - has_many :parent_swf_asset_relationships, :foreign_key => 'parent_id' + has_many :parent_swf_asset_relationships, :foreign_key => 'parent_id', + :autosave => false has_many :swf_assets, :through => :parent_swf_asset_relationships belongs_to :pet_type @@ -55,6 +56,7 @@ class PetState < ActiveRecord::Base def handle_assets! parent_swf_asset_relationships.each do |rel| rel.swf_asset.save! + rel.save! end end