Dillon Welch
cac943e891
Add frozen_string_literal in all .rb files
...
I noticed these files all had strings such as "", " ", "_" that were
allocated each time some common methods were called, over 1000x on a
page in my app. This comment freezes all of these strings such that
they're only allocated once, saving many KB of memory allocation.
2017-11-27 17:06:18 -08:00
John Voloski
e878330f28
improve inputs's tests description and remove 'should'
2014-05-14 14:19:06 -03:00
Renato Mascarenhas
34312c9fbc
Use 1.9 hash style on code and docs.
2013-01-28 19:02:59 -02:00
Vasiliy Ermolovich
c4bceafcf8
refactor readonly_test
...
separate expectations to own test cases
use assert_no_select instead of css selector
2012-09-07 11:17:54 +03:00
José Valim
0fabc1b859
Allow inputs to be marked as optional.
...
This means they won't do any lookup unless explicitly told to.
2012-01-11 21:14:31 +01:00
Rafael Mendonça França
cc5fd25e48
Add readonly component. Closes #378
2011-12-04 23:41:54 -02:00
Stephen Ingram
fd62add671
Added :readonly as f.input html option
...
Added the ability to specify :readonly => true to f.input. Works the
same as :disabled. The code is a clone of the code for :disabled.
2011-11-25 23:38:47 -10:00