Skip to content

Instantly share code, notes, and snippets.

@groony
Created July 2, 2018 08:24
Show Gist options
  • Save groony/1c34d5b4b94e34b1fb991da3d5ea68c4 to your computer and use it in GitHub Desktop.
Save groony/1c34d5b4b94e34b1fb991da3d5ea68c4 to your computer and use it in GitHub Desktop.
dry-validation initializer
Dry::Validation::Schema::Params.configure do |config|
config.messages_file = Rails.root.join('config', 'locales', 'errors.yml')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment