-
-
Save bwiggs/307041 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc %{ Renders the contained block if online ordering is true} | |
tag 'location:ordering' do |tag| | |
location = tag.locals.location | |
if location.phone && %w(713 281 972 214 469 817).detect { |area_code| location.phone.start_with? area_code} | |
tag.expand | |
elsif location.title && (location.title == "San Jacinto" || location.title == "Preston Forest") | |
tag.expand | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment