Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing a bad merge

  • Loading branch information...
commit 99ee8baf9dd994a59d694663ccd20efe178af19d 1 parent 59c1fce
@justinfrench authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/formtastic.rb
View
2  lib/formtastic.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.