Skip to content

Instantly share code, notes, and snippets.

@andyferra
Created December 31, 2010 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyferra/761375 to your computer and use it in GitHub Desktop.
Save andyferra/761375 to your computer and use it in GitHub Desktop.
def search_options
options = {
:engagement_end_date_gte => Time.zone.now.to_date,
:hotel_state_id_is => @state_id
}
options[:hotel_city_id_is] = @city_id if @city_id.present?
options
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment