Skip to content

Instantly share code, notes, and snippets.

@giovannibenussi
Last active September 14, 2017 20:30
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 giovannibenussi/2dd50d9ebf07b5d2ff74a7d9326f893a to your computer and use it in GitHub Desktop.
Save giovannibenussi/2dd50d9ebf07b5d2ff74a7d9326f893a to your computer and use it in GitHub Desktop.
resolve lambda { |_, args, _|
Validators::Model.validate!(args)
Model.find_by(address: args[:address], name: args[:name])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment