Skip to content

Commit

Permalink
remove to_s because it will happen anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronLasseigne committed Nov 11, 2013
1 parent b94abf8 commit 4cea2f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_interaction/validation.rb
Expand Up @@ -9,7 +9,7 @@ def self.validate(filters, inputs)
rescue InvalidNestedValue
errors << [filter.name, :invalid_nested]
rescue InvalidValue
errors << [filter.name, :invalid, nil, type: I18n.translate("#{Base.i18n_scope}.types.#{filter.type.to_s}")]
errors << [filter.name, :invalid, nil, type: I18n.translate("#{Base.i18n_scope}.types.#{filter.type}")]
rescue MissingValue
errors << [filter.name, :missing]
end
Expand Down

0 comments on commit 4cea2f3

Please sign in to comment.