app/controllers/elt_controller.rb in parlement-0.6 vs app/controllers/elt_controller.rb in parlement-0.7
- old
+ new
@@ -113,9 +113,10 @@
logger.info "#{(session[:person] ? session[:person].name : 'null')} voting #{params[:choice][:value]}"
end
vote.publish
@elt.add_child vote
+ expire_fragment :action => 'show', :id => @elt.id
render :partial => '/elt/choice', :locals => { :elt => @elt }
end
def choices