lib/validates_timeliness/validator.rb in adzap-validates_timeliness-1.1.1 vs lib/validates_timeliness/validator.rb in adzap-validates_timeliness-1.1.2
- old
+ new
@@ -113,10 +113,10 @@
def custom_error_messages
return @custom_error_messages if defined?(@custom_error_messages)
@custom_error_messages = configuration.inject({}) {|msgs, (k, v)|
if md = /(.*)_message$/.match(k.to_s)
- msgs[md[0].to_sym] = v
+ msgs[md[1].to_sym] = v
end
msgs
}
end