Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Allow passing a Proc or Symbol as an argument to length validator values | Matt Rohrer | 2017-10-26 | 1 | -2/+8 |
| | | | | | This brings the Length validator in line with the Numericality validator, which currently supports Proc & Symbol arguments | ||||
* | Use frozen string literal in activemodel/ | Kir Shatrov | 2017-07-16 | 1 | -0/+2 |
| | |||||
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string" | Matthew Draper | 2017-07-02 | 1 | -1/+0 |
| | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa. | ||||
* | Enforce frozen string in Rubocop | Kir Shatrov | 2017-07-01 | 1 | -0/+1 |
| | |||||
* | change ActiveModel::Validation to ActiveModel::Validations in comments | Sen Zhang | 2017-02-15 | 1 | -1/+1 |
| | |||||
* | Remove unused require | Ryuta Kamizono | 2017-02-12 | 1 | -2/+0 |
| | | | | | | These files are not using `strip_heredoc`. Closes #27976 | ||||
* | Add more rubocop rules about whitespaces | Rafael Mendonça França | 2016-10-29 | 1 | -1/+1 |
| | |||||
* | Removed deprecated :tokenizer in the length validator | Rafael Mendonça França | 2016-10-10 | 1 | -34/+1 |
| | |||||
* | applies remaining conventions across the project | Xavier Noria | 2016-08-06 | 1 | -1/+0 |
| | |||||
* | normalizes indentation and whitespace across the project | Xavier Noria | 2016-08-06 | 1 | -13/+13 |
| | |||||
* | applies new string literal convention in activemodel/lib | Xavier Noria | 2016-08-06 | 1 | -1/+1 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | fix length validation error typo | PareshGupta | 2016-04-07 | 1 | -1/+1 |
| | |||||
* | Separate the constraint and other options [ci skip] | Robin Dupret | 2015-07-01 | 1 | -3/+8 |
| | | | | | | | | | | Only one constraint option can be used at a time (except for the minimum and maximum ones that can eventually be combined). However, other options can be used with them (e.g. the validation failure message). So let's make the distinction between these two different options categories. [Yves Senn, Matthew Draper & Robin Dupret] | ||||
* | A few documentation fixes [ci skip] | Robin Dupret | 2015-06-23 | 1 | -1/+1 |
| | |||||
* | docs, :scissors: wrongly placed heading. [ci skip] | Yves Senn | 2015-06-22 | 1 | -2/+0 |
| | | | | | The heading "Active Model Length Validator" was shown on the "ActiveModel::Validations" page without any text following it. | ||||
* | fix typo in deprecation message. [Robin Dupret] | Yves Senn | 2015-04-05 | 1 | -1/+1 |
| | |||||
* | Deprecate the `:tokenizer` option to `validates_length_of` | Sean Griffin | 2015-03-29 | 1 | -8/+30 |
| | | | | | | | | As demonstrated by #19570, this option is severely limited, and satisfies an extremely specific use case. Realistically, there's not much reason for this option to exist. Its functionality can be trivially replicated with a normal Ruby method. Let's deprecate this option, in favor of the simpler solution. | ||||
* | Tiny documentation edits [ci skip] | Robin Dupret | 2015-02-15 | 1 | -4/+6 |
| | |||||
* | Allow symbol as values for `tokenize` of `LengthValidator` | kakipo | 2014-08-03 | 1 | -7/+11 |
| | |||||
* | Adding missing backslashes in active_model files so as to avoid unwanted ↵ | aditya-kapoor | 2013-12-27 | 1 | -1/+1 |
| | | | | links in rdoc [ci skip] | ||||
* | Convert ActiveModel to 1.9 hash syntax. | Patrick Robertson | 2013-05-01 | 1 | -2/+2 |
| | | | | | I also attempted to fix other styleguide violations such as { a: :b } over {a: :b} and foo(b: 'bar') over foo( b: 'bar' ). | ||||
* | Length validation handles correctly nil. Fix #7180 | Michal Zima | 2012-11-26 | 1 | -2/+14 |
| | | | | When nil or empty string are not allowed, they are not valid. | ||||
* | minor edits in AM documentation [ci skip] | Francesco Rodriguez | 2012-10-21 | 1 | -3/+3 |
| | |||||
* | calculate errors_options one time in validate_each | Angelo Capilleri | 2012-08-03 | 1 | -2/+2 |
| | | | | | | errors_options is calculated for every *CHECKS* but it could be calculated one time because options and RESERVED_OPTIONS not change during this cycle | ||||
* | AM::Validations: remove documentation duplicates | Bogdan Gusiev | 2012-07-10 | 1 | -14/+4 |
| | |||||
* | fix syntax of AM::Validations::HelperMethods examples [ci skip] | Francesco Rodriguez | 2012-07-05 | 1 | -3/+3 |
| | |||||
* | update ActiveModel::Validations::HelperMethods documentation [ci skip] | Francesco Rodriguez | 2012-07-05 | 1 | -24/+26 |
| | |||||
* | add :nodoc: to internal implementations [ci skip] | Francesco Rodriguez | 2012-06-25 | 1 | -1/+1 |
| | |||||
* | fixing removed empty lines and examples | Francesco Rodriguez | 2012-05-16 | 1 | -0/+1 |
| | |||||
* | better format and fixes to validators docs | Francesco Rodriguez | 2012-05-16 | 1 | -17/+27 |
| | |||||
* | Prefer || over 'or' for boolean operations | Benjamin Quorning | 2012-02-22 | 1 | -1/+1 |
| | |||||
* | remove unnecessary require core_ext/string/encoding | Sergey Nartimov | 2012-02-14 | 1 | -2/+0 |
| | |||||
* | To infinity… and beyond! | Niels Ganser | 2012-02-06 | 1 | -2/+2 |
| | | | | | | | Allow infinite values for validates_length_of. Particularly useful for prettily defining an open ended range such as validates_length_of :human_stupidity, :within => 0..Float::INFINITY | ||||
* | don't call an extra method if options[:tokenizer] is not present | Vasiliy Ermolovich | 2011-12-24 | 1 | -4/+2 |
| | |||||
* | use Range#min and Range#max to reduce extra statement | Vasiliy Ermolovich | 2011-12-24 | 1 | -2/+1 |
| | |||||
* | deprecate String#encoding_aware? and remove its usage | Sergey Nartimov | 2011-12-24 | 1 | -2/+0 |
| | |||||
* | Ensure length validator also works on 1.8.7. | José Valim | 2011-12-06 | 1 | -6/+17 |
| | |||||
* | Don't tokenize string when counting characters | Ian Young | 2011-12-04 | 1 | -2/+1 |
| | |||||
* | Fix argument error message for length validation | Alexey Vakhov | 2011-12-01 | 1 | -1/+1 |
| | |||||
* | Implemented strict validation concept | Bogdan Gusiev | 2011-08-17 | 1 | -0/+2 |
| | | | | | | | In order to deliver debug information to dev team instead of display error message to end user Implemented strict validation concept that suppose to define validation that always raise exception when fails | ||||
* | remove stray ( | Vijay Dev | 2011-06-03 | 1 | -1/+1 |
| | |||||
* | Change hashrocket spacing to match conventions. | Ben Orenstein | 2011-06-02 | 1 | -2/+2 |
| | |||||
* | Remove extra white spaces on ActiveModel docs. | Sebastian Martinez | 2011-05-23 | 1 | -3/+3 |
| | |||||
* | Don't add DEFAULT_TOKENIZER to every instance of LengthValidator. Just use ↵ | Akira Matsuda | 2011-05-16 | 1 | -2/+2 |
| | | | | it only when needed. | ||||
* | Refactor length validation | Santiago Pastorino | 2011-03-12 | 1 | -3/+3 |
| | |||||
* | length validation for fixnums | Andriy Tyurnikov | 2011-03-12 | 1 | -1/+2 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | copy-edits 8d96b89 | Xavier Noria | 2011-02-21 | 1 | -1/+3 |
| | |||||
* | Clarification of ActiveRecord ActiveModel validation documentation | Peer Allan | 2011-02-18 | 1 | -1/+1 |
| | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -1/+1 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | tidy up validations length code [#5297 state:resolved] | Subba Rao Pasupuleti | 2010-08-12 | 1 | -6/+2 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> |