lib/clamp/messages.rb in clamp-1.3.1 vs lib/clamp/messages.rb in clamp-1.3.2

- old
+ new

@@ -9,10 +9,13 @@ def messages=(new_messages) messages.merge!(new_messages) end def message(key, options = {}) - format(messages.fetch(key), options) + string = messages.fetch(key) + return string if options.empty? + + format string, options end def clear_messages! init_default_messages end