Commit Graph

23 Commits

Author SHA1 Message Date
Herminio Torres 1a72dffc37
Add support Rails 5. 2016-07-05 12:22:52 -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 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
Vasiliy Ermolovich 8cf7809370 remove Rails backports 2012-12-14 22:54:09 +03:00
Rafael Mendonça França 274d6ec111 Check by the validation kind method instead of the full constant 2012-10-03 00:05:47 -03:00
Rafael Mendonça França 8d5dcfde43 Fix broken tests 2012-01-11 18:19:11 -03:00
Vasiliy Ermolovich 55222432a2 fix tokenizer and validates_format_for with activemodel < 3.1 2012-01-11 23:57:51 +03:00
José Valim 0fabc1b859 Allow inputs to be marked as optional.
This means they won't do any lookup unless explicitly told to.
2012-01-11 21:14:31 +01:00
Carlos Antonio da Silva 9a25aaaeea Split if condition 2012-01-05 08:40:48 -02:00
Vasiliy Ermolovich e39e0e54cb handle validates_length_of :is option 2012-01-03 21:10:50 +03:00
Vasiliy Ermolovich e50011eadf don't get maxlength from validation when tokenizer present 2012-01-02 23:48:41 +03:00
Carlos Antonio da Silva 89a6829ded Only check for existence of validators when trying to find them
This allows a bit of cleanup on some components which are always
checking for has_validators? before doing the validators lookup.
2011-12-10 16:08:04 -02:00
José Valim 50b24b5cbe Deprecate translate in favor of disabling the automatic lookup in hints and placeholders. 2011-12-04 15:49:57 +01:00
José Valim 94dab68cd7 Create more components. Make explicit the difference between helpers and components. Add default options to wrappers. 2011-12-04 14:57:12 +01:00
José Valim e8749ae07e Add class default options to avoid has_*? checks. 2011-12-04 13:29:59 +01:00
José Valim ce19f2b898 Make maxlength a component. 2011-12-04 13:14:39 +01:00
José Valim a4655ba845 Refactor Inputs::Base into helpers and make :on based on the resource status. 2011-09-03 12:00:23 +02:00
José Valim 5d6d977fc8 Break up mapping input and also provide an enable API. 2011-09-03 11:13:29 +02:00
José Valim ce932d6ad1 Mark maxlength methods as private. 2011-09-02 17:48:20 +02:00
Rafael Mendonça França 3a728a6e2d Only generate maxlength when HTML 5 is active 2011-08-30 23:43:53 -03:00
Rafael Mendonça França 4a4c99f7fa Add support for maxlenght to text area inputs. Closes #232 2011-08-30 20:52:31 -03:00