Skip to content

Instantly share code, notes, and snippets.

@fzakaria
Created February 27, 2020 18:27
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 fzakaria/11ec7f4bd4cd1958fb2e83e49cb69b31 to your computer and use it in GitHub Desktop.
Save fzakaria/11ec7f4bd4cd1958fb2e83e49cb69b31 to your computer and use it in GitHub Desktop.
class TestTable < Sequel::Model(:test_table)
def is_something?
self[:x] == 123
end
end
TestTable.where{ is_something? }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment