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

    head :ok
  end

  private

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