Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
1977385383_09
def direction
if @before_value.present? || @last_value.present?
:backward
else
# Fall back to forward by default
:forward
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment