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 filter_tracks | |
# Does this need to be so high when JavaScript limits display to 14? | |
@limit ||= 50 | |
# The query methods are responsible for adding their own offsets to this | |
# hash map; that way, changing or removing a query method doesn't affect any | |
# other method | |
# If you need persistence with your implementation of pagination, | |
# make a session/cookie instead of an instance variable | |
@tracks_offset ||= {} |