sessions_controller.rb 270 Bytes
Newer Older
Zac Wood's avatar
Zac Wood committed
1
2
class SessionsController < ApplicationController
  def update
3
    update_cookie :crns
Zac Wood's avatar
Zac Wood committed
4
    update_cookie :section_ids
5
    update_cookie :semester_id
Zac Wood's avatar
Zac Wood committed
6
7
8
9
10
11
12
13
14
15

    head :ok
  end

  private

  def update_cookie(sym)
    cookies[sym] = params[sym] unless params[sym].nil?
  end
end