2015-09-12 15:37:05 -05:00
|
|
|
class ApplicationController < ActionController::Base
|
|
|
|
# Prevent CSRF attacks by raising an exception.
|
|
|
|
# For APIs, you may want to use :null_session instead.
|
|
|
|
protect_from_forgery with: :exception
|
2015-09-18 15:50:52 -05:00
|
|
|
|
|
|
|
respond_to :html, :json
|
2015-09-20 22:30:44 -05:00
|
|
|
|
|
|
|
def current_user
|
|
|
|
# temp
|
|
|
|
Person.new(id: 9999)
|
|
|
|
end
|
|
|
|
helper_method :current_user
|
2015-09-12 15:37:05 -05:00
|
|
|
end
|