-
-
Save drymar/c421033821ffa495f66f49a437c6cd0d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def tickets | |
case | |
when filters.excel | |
range_tickets | |
when filters.avia_offset.present? == false | |
range_tickets[0..24] | |
when filters.from_postsale | |
range_tickets[0...filters.avia_offset] | |
else | |
range_tickets[filters.avia_offset..filters.avia_offset + 9] || [] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment