]> projects.mako.cc - selectricity/blobdiff - app/controllers/quickvote_controller.rb
Fix rubydoc generation for the selectricity service.
[selectricity] / app / controllers / quickvote_controller.rb
index 7ad1722cb59cf69f2021b22021647ef0a26f452f..cd63c2e52f61245f2d6b0b537cfb56b624e4d0b2 100644 (file)
@@ -17,6 +17,8 @@ class QuickvoteController < ApplicationController
       @quickvote.description=@quickvote.description
       #record who created the quickvote so that person can monitor it easily
       @quickvote.quickuser = session.session_id
       @quickvote.description=@quickvote.description
       #record who created the quickvote so that person can monitor it easily
       @quickvote.quickuser = session.session_id
+      #Give registered users additional QuickVote functionality 
+      @quickvote.user_id = session[:user][:id] if session[:user]
       # try to save, if it fails, show the page again (the flash should
       # still be intact
       if @quickvote.save
       # try to save, if it fails, show the page again (the flash should
       # still be intact
       if @quickvote.save

Benjamin Mako Hill || Want to submit a patch?