Sha256: a23763c296b6ed5b527c9ff9e5ec0b591c9f746e83d14416a0aa4539db77dc48
Contents?: true
Size: 283 Bytes
Versions: 4
Compression:
Stored size: 283 Bytes
Contents
module FormsHelper def response_setup(form) form.responses.build end def field_type(field) field_type = field._type.gsub(/^.*::/, '').downcase if field_type == "textfield" && field.rows > 1 field_type = "textarea" end return field_type end end
Version data entries
4 entries across 4 versions & 1 rubygems