Skip to content

Commit

Permalink
fixing a bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfrench committed Dec 20, 2010
1 parent 59c1fce commit 99ee8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/formtastic.rb
Expand Up @@ -1694,7 +1694,7 @@ def get_maxlength_for(method)
if type == :text
{ :rows => default_text_area_height,
:cols => default_text_area_width }
elsif type == :numeric || column.nil? || column.limit.nil?
elsif type == :numeric || column.nil? || !column.respond_to?(:limit) || column.limit.nil?
{ :maxlength => validation_max_limit,
:size => default_text_field_size }
else
Expand Down

0 comments on commit 99ee8ba

Please sign in to comment.