Class: Noodall::TextField

Inherits:
Field
  • Object
show all
Defined in:
app/models/noodall/text_field.rb

Instance Method Summary collapse

Methods inherited from Field

#default_class, #default_label, #mandatory?, #underscored_name

Instance Method Details

#constrain_rowsObject



7
8
9
10
# File 'app/models/noodall/text_field.rb', line 7

def constrain_rows
  rows = rows.to_i
  rows = 1 if rows < 1
end