Skip to content

Instantly share code, notes, and snippets.

@handshake-engineering-blog
Created April 19, 2021 20:20
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 handshake-engineering-blog/f30175e393ab8920a22c033be4dba18b to your computer and use it in GitHub Desktop.
Save handshake-engineering-blog/f30175e393ab8920a22c033be4dba18b to your computer and use it in GitHub Desktop.
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