Skip to content
Browse files

Merge branch 'master' of…

  • Loading branch information...
2 parents 889eb81 + 7a7953b commit 6bc20fdd767049fceb57de80ce948ff1d4995819 @rlivsey committed Mar 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mm-multi-parameter-attributes.rb
2 lib/mm-multi-parameter-attributes.rb
@@ -41,7 +41,7 @@ def execute_callstack_for_multiparameter_attributes(callstack)
callstack.each do |name, values_with_empty_parameters|
# in order to allow a date to be set without a year, we must keep the empty values.
# Otherwise, we wouldn't be able to distinguish it from a date with an empty day.
- values = values_with_empty_parameters.reject(&:nil?)
+ values = values_with_empty_parameters.reject(&:nil?).map(&:to_i)
if !values.reject{|x| x.blank? }.empty?
key = self.class.keys[name]

0 comments on commit 6bc20fd

Please sign in to comment.
Something went wrong with that request. Please try again.