Commit Graph

10 Commits

Author SHA1 Message Date
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 ed1862036c Remove duplication at the deprecated methods 2014-03-11 16:10:26 -03:00
Rafael Mendonça França 61865123f4 Extract the deprecation message to avoid duplication 2014-03-11 16:06:45 -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 44f22ca3fb Make context optional
We plan to make it required in the future but it is optional now to make
easier to implement backwards compatibility
2014-03-11 15:22:45 -03:00
Rafael Mendonça França 645988a855 Pass the context when rendering the component 2014-03-10 18:41:36 -03:00
allomov b96fedba88 label_input should return html_safe string 2012-10-04 16:59:04 +03:00
Carlos Antonio da Silva a0a7fb26c2 Use AS::Concern, cleanup spaces 2011-09-03 09:40:47 -03:00
José Valim ab60a080b3 Split boolean inputs into their own class so we can change label input order. 2010-07-06 11:24:12 +02:00