molten-trunk/molten5_withgrid/app/controllers/case_watchers_controller.rb
# Subscribes the +current_contact+ to either an account or support case depending on the 
# params. See +#set_options+ for how this is done.
Subscribes the +current_contact+ to either an account or support case depending on the
params. See +#set_options+ for how this is done.
Subscribes the + current_contact + to either an account or support case depending on the params . See + #set_options + for how this is done .
def subscribe
    Case_Watcher.create_subscription!(current_contact.synced_record, set_options )
    if request.xhr?
      render :update do |page|
        page.alert "Case Watcher Created."
        page.replace_html "subscribe_container", set_subscribe_link
      end
    else
      flash[:notice] = "Case Watcher Created."
      redirect_to(:back)
    end
  end
def subscribe Case_Watcher . create_subscription! ( current_contact . synced_record , set_options ) if request . xhr? render :update do | page | page . alert "Case Watcher Created." page . replace_html "subscribe_container" , set_subscribe_link end else flash [ :notice ] = "Case Watcher Created." redirect_to ( :back ) end end
Subscribes the +current_contact+ to either an account or support case depending on the
params.
Subscribes the + current_contact + to either an account or support case depending on the params .