Commit Graph

15 Commits

Author SHA1 Message Date
John Voloski 3bff1fa5a1 improve form_builder's tests description and remove 'should' 2014-05-14 14:18:43 -03:00
Rafael Mendonça França 2b7428139f Use lambda to document we accept three arguments 2014-04-02 20:09:22 -03:00
Rafael Mendonça França c5cd96675c Merge pull request #786 from timscott/master
Consider whether the user explicitly specifies a label when applying global custom formatting

Conflicts:
	lib/simple_form/components/labels.rb
	test/form_builder/label_test.rb
2014-04-02 20:05:49 -03:00
Rafael Mendonça França 0c3922fea9 Merge pull request #617 from NOX73/master
add label_text method to single wrapper

Conflicts:
	lib/simple_form/components/labels.rb
2014-04-02 19:54:41 -03:00
Rafael Mendonça França c0cb09215f Make sure label text is escaped if it is not safe
Signed-off-by: Rafael Mendonça França <rafaelmfranca@gmail.com>
2013-11-29 13:35:24 -02:00
Thiago Fernandes Massa 47c34fb155 Fixed typo 2013-07-22 09:58:25 -03:00
Tim Scott cdf43ea3ea Changed call to label_text to always pass the new thrid parameter, and made the default a proc that ignores it. This is a breaking change. 2013-04-17 10:35:55 -05:00
Tim Scott 00704ffb33 Added the ability consider whether the the user exlicitly specified the label or the framework generated it when applying global custom formatting. 2013-04-17 08:56:25 -05:00
Renato Mascarenhas 34312c9fbc Use 1.9 hash style on code and docs. 2013-01-28 19:02:59 -02:00
Rozhnov Alexandr 716b998008 add test for label_text method 2012-09-11 16:45:26 +04:00
Vasiliy Ermolovich 61b47ed8d0 except :as from label_html options 2012-02-25 14:47:56 +03:00
Carlos Antonio da Silva ea07f65fd5 Ensure labels generate clean html. Closes #466 2012-02-22 08:34:02 -02:00
Rafael Mendonça França f4a1ac6f83 FormBuilder methods should not modify the options hash
Closes #463
2012-02-21 01:42:06 -02:00
Alex Kwiatkowski & Peter Jaros c88efe3c0c Fallback to default label when block is provided 2011-09-15 12:02:02 -04:00
José Valim 3ee59b5d0d Break form builder test into smaller files. 2011-09-08 16:04:36 +02:00