Commit Graph

14 Commits

Author SHA1 Message Date
Andres Ehrenpreis 928adab801 Code cleanup 2018-01-08 10:29:03 +02:00
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
Carlos Antonio da Silva 359606f222 Ensure to generate input_class only for the input, not for the wrapper
Thanks @ollym for catching this one. Related to #337.
2013-08-16 08:12:41 -03:00
Rafael Mendonça França 262c5542ae Add configuration to add class globally to inputs.
Closes #316
2013-08-14 20:08:28 -03:00
Renato Mascarenhas 34312c9fbc Use 1.9 hash style on code and docs. 2013-01-28 19:02:59 -02:00
Vasiliy Ermolovich 2ad7e87484 refactor general_test
separate expectations to own test cases
use assert_no_select instead of css selector
2012-09-07 09:21:19 +03:00
Paul Kmiec 4cb4a5ed5d prevent generating class="" 2012-06-29 12:53:32 -07:00
Carlos Antonio da Silva 26f3c20f1a :radio is not :radio_buttons
Makes the API more consistent with :check_boxes, and improves
compatibility with bootstrap collections by avoiding :radio namespace
collision.
2012-01-27 17:47:48 -02:00
Rafael Mendonça França 7849c86897 Remove repeated tests 2011-09-26 21:36:34 -03:00
Rafael Mendonça França 96275d6241 Extract disabled logic to a helper. Closes #317 2011-09-11 18:53:00 -03:00
Rafael Mendonça França 8dc707a7c2 Add disabled class to disabled input 2011-09-11 18:46:47 -03:00
José Valim d744571901 Autofocus is opt-in, do not rely on .html5 then. 2011-09-08 16:04:36 +02:00
José Valim cc72315703 Break inputs_test.rb into many files as well. 2011-09-08 16:04:36 +02:00