Skip to content

Instantly share code, notes, and snippets.

@ryanstout
Created December 14, 2014 05:42
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 ryanstout/803d6fb94c278d05f2ef to your computer and use it in GitHub Desktop.
Save ryanstout/803d6fb94c278d05f2ef to your computer and use it in GitHub Desktop.
class User < Volt::Model
validate do
if signed_up?
validate :password, password: true
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment