{"name":"gist: 977180","desc":"Duplicate items when using update_attributes and decent_exposure","actor":"jens","url":"https://gist.github.com/977180","actor_gravatar":"d095d5ce865998dac30c89deba75bad7","snippet":"class AttachedFile < ActiveRecord::Base\n  belongs_to :parent, :polymorphic => true                                                     \nend","action":"create"}