lib/errawr.rb in errawr-1.0.0 vs lib/errawr.rb in errawr-1.1.0

- old
+ new

@@ -7,9 +7,10 @@ module Errawr I18n.load_path += Dir.glob('lib/errawr/locales/*.{rb,yml}') def self.error!(name, context = {}) klass = Mapper[name] || Mapper[:unknown] + klass.metadata.merge!(context.delete(:metadata) || {}) klass.context.merge!(context) raise klass end def self.register!(key, options = {})