Skip to content

Instantly share code, notes, and snippets.

View kwerle's full-sized avatar

Kurt Werle kwerle

View GitHub Profile
class ApplicationController < ActionController::Base
protect_from_forgery
def current_search
Search.find(session[:search_id])
end
def current_search?
session[:search_id].present?
end