Skip to content

Instantly share code, notes, and snippets.

@jerrett
Created February 21, 2012 20:39
Show Gist options
  • Save jerrett/1878760 to your computer and use it in GitHub Desktop.
Save jerrett/1878760 to your computer and use it in GitHub Desktop.
@location = params[:location] || session[:location] || request.geo[:address]
@location = [ params[:latitude], params[:longitude] ] if params[:latitude].present? and params[:longitude].present?
session[:location] = @location
options = {
:facility_type => Facility.code( @active_tab ),
:location => @location == request.geo[:address] ? request.geo[:location] : @location,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment