Skip to content

Instantly share code, notes, and snippets.

@jagdeepsingh
Created December 26, 2015 13:54
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 jagdeepsingh/00d8f5fc907949415a59 to your computer and use it in GitHub Desktop.
Save jagdeepsingh/00d8f5fc907949415a59 to your computer and use it in GitHub Desktop.
Define a helper in rails
module ReservationHelper
def show_advanced_num_people_fields?(reservation)
show_num_people_senior?(reservation) ||
show_num_people_child?(reservation) ||
show_num_people_baby?(reservation)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment