1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00
Commit graph

23 commits

Author SHA1 Message Date
Andres Ehrenpreis
928adab801 Code cleanup 2018-01-08 10:29:03 +02:00
Timur Vafin
f62371525d Try convert @object to model in case we got decorated object 2017-12-20 15:09:58 +03: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
Lucas Mazza
cf1f9ff4df
Ignore the :label_text option when rendering label tags.
Closes #1314.
2016-07-13 00:01:56 -03:00
Carlos Antonio da Silva
96cf04fb21 Remove extra self 2015-03-25 08:17:42 -03:00
Rhodri Davies
31841186f0 Add disabled class to label's additional classes
Adds disabled class to the attribute label so that it might also be
styled when the input is disabled
2015-02-16 17:49:15 +00:00
Rafael Mendonça França
914b58cb9d Assert the absent of tags not the escaped text
Nokogiri doesn't escape the output
2014-11-17 17:27:13 -02:00
Kai Chen
db8fbe94ae remove warning of label_text method in wrapper, when replace html
label tag to other tag
2014-06-19 16:11:27 +08:00
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