Commit Graph

11 Commits

Author SHA1 Message Date
Rigoberto Molina 3e0d3ce518 Use symbol instead of string 2018-09-17 16:56:29 -07:00
Rigoberto Molina 4b1cd65588 Add "new inputs can override the default input_html_classes" test case 2018-09-17 16:40:43 -07: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
Ulisses Herrera Freire de Almeida 4612cb0463 Add test to make sure the not maped inputs on custom namespaces has precedence. 2014-06-26 17:52:23 -03:00
vala 5ae526ed3c Add SimpleForm.custom_inputs_namespaces config to allow namespacing custom input classes 2014-06-05 12:46:12 +02:00
Rafael Mendonça França 15f0101545 Pass the options hash instead of the Leaf object
Right now we only care about the options so lets make the code simpler
2014-03-11 19:41:25 -03:00
Rafael Mendonça França e9384fb4bd Whitespaces 2014-03-11 19:13:59 -03:00
Rafael Mendonça França 9e3aae1da3 Deprecate component methods without the context argument
Only users that defines custom inputs will see this deprecation.
2014-03-11 15:54:18 -03:00
Rafael Mendonça França 645988a855 Pass the context when rendering the component 2014-03-10 18:41:36 -03:00
Rafael Mendonça França 45ae549ec3 Document that you can override `input_html_classes` in custom inputs.
Closes #539
2012-04-21 23:21:36 -03:00
José Valim cc72315703 Break inputs_test.rb into many files as well. 2011-09-08 16:04:36 +02:00
Renamed from test/discovery_inputs.rb (Browse further)