Skip to content

Instantly share code, notes, and snippets.

@handshake-engineering-blog
Created April 19, 2021 20:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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