Rigoberto Molina
2ebc514feb
Memoize input_html_classes ( #1605 )
...
* Add test to make sure custom classes are only added once
* Use Nokogiri selector syntax
* Memoize input_html_classes
* Add my change to the changelog
* Refactoring
* Remove whitespace
2018-09-21 23:36:22 -03:00
Rigoberto Molina
a043cc9012
Use assert_no_select instead of assert_select(..., false)
2018-09-18 03:06:07 -07:00
Rigoberto Molina
112ade5765
Undefine custom FileInput after discovery
2018-09-17 17:23:21 -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
Herminio Torres
1a72dffc37
Add support Rails 5.
2016-07-05 12:22:52 -03:00
Ulisses Herrera Freire de Almeida
2765f5ae8f
Make sure when a not existent namespace is passed raises error
2014-06-26 17:53:07 -03: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
Ulisses Herrera Freire de Almeida
245cb3259c
Add precendence to custom inputs on custom namespaces.
2014-06-26 15:09:53 -03:00
vala
5ae526ed3c
Add SimpleForm.custom_inputs_namespaces config to allow namespacing custom input classes
2014-06-05 12:46:12 +02:00
John Voloski
e878330f28
improve inputs's tests description and remove 'should'
2014-05-14 14:19:06 -03: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
Renato Mascarenhas
34312c9fbc
Use 1.9 hash style on code and docs.
2013-01-28 19:02:59 -02: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