Skip to content

Instantly share code, notes, and snippets.

@idrozd
idrozd / translatable.rb
Created July 19, 2013 08:09
Ruby Translatable
# Motivation:
# Wanted a more solid way to test validation resulted in correct errors
# other than matching strings;
# Decoupling the very notion of error from message
#
# Sideeffects:
# - Conventional way to namespace error translation by actual path
module Translatable