Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove obsolete warning about regular expression | Philipe Fatio | 2017-03-14 | 1 | -3/+0 |
| | | | | | | | | | | This warning became obsolete when the regular expression was changed to use `\z` instead of `\Z` in fce9c4e5e1ecb31cff2ca43a04fbe332816c3c45. "-1234\n" =~ /\A[+-]?\d+\Z/ => 0 "-1234\n" =~ /\A[+-]?\d+\z/ => nil [ci skip] | ||||
* | Remove deprecate passing string to `:if` and `:unless` conditional options ↵ | yuuji.yaginuma | 2017-02-18 | 1 | -12/+0 |
| | | | | | | [ci skip] Follow up to #27608 | ||||
* | Correct usage for acceptance validator in guide | Tekin Suleyman | 2016-08-02 | 1 | -1/+1 |
| | |||||
* | [ci skip] Expand information on message options | schneems | 2016-06-08 | 1 | -3/+9 |
| | | | | Link to the more detailed message documentation when using a message option in validations. | ||||
* | Active Model: Improve CHANGELOG and documentation for ↵ | Prathamesh Sonpatki | 2016-05-05 | 1 | -8/+17 |
| | | | | | | | | | | | `validates_acceptance_of` [ci skip] - Improve CHANGELOG entry for #18439. - The documentation is updated as per changes in PR #18439 to the `accept` option. - The explanation about the virtual attribute is moved at the end so that the arity of `accept` option is explained first. - Added a note that `message` can also be passed to `validates_acceptance_of`. | ||||
* | Update example of passing a proc to `:message` option for validating records ↵ | Prathamesh Sonpatki | 2016-04-06 | 1 | -4/+4 |
| | | | | | | | | | | [ci skip] - This change is made as the behavior for `:message` proc was changed in https://github.com/rails/rails/pull/24119. - Also check https://github.com/rails/rails/pull/24431#issuecomment-206106790 for reference. | ||||
* | [ci skip] Fix variable name | Arthur Vieira | 2016-04-04 | 1 | -2/+2 |
| | |||||
* | [skip ci] Update `numericality` validation docs | Arkadiusz Fal | 2016-03-28 | 1 | -0/+2 |
| | | | | Add `:other_than` option documentation. | ||||
* | [ci skip] Added missing custom context validation | Vijay Kumar Agrawal | 2016-03-24 | 1 | -0/+19 |
| | |||||
* | Fix small typo in Rails guides [ci skip] | Mehmet Emin İNAÇ | 2016-02-15 | 1 | -1/+1 |
| | |||||
* | Introduce ApplicationRecord, an Active Record layer supertype | Genadi Samokovarov | 2015-12-16 | 1 | -54/+54 |
| | | | | | | | | | | | | | | | | It's pretty common for folks to monkey patch `ActiveRecord::Base` to work around an issue or introduce extra functionality. Instead of shoving even more stuff in `ActiveRecord::Base`, `ApplicationRecord` can hold all those custom work the apps may need. Now, we don't wanna encourage all of the application models to inherit from `ActiveRecord::Base`, but we can encourage all the models that do, to inherit from `ApplicationRecord`. Newly generated applications have `app/models/application_record.rb` present by default. The model generators are smart enough to recognize that newly generated models have to inherit from `ApplicationRecord`, but only if it's present. | ||||
* | Merge pull request #22427 from eliotsykes/validation-message-proc-doc | Yves Senn | 2015-11-30 | 1 | -1/+30 |
|\ | | | | | | | Document message validation option accepts Proc [ci skip] | ||||
| * | Document message validation option accepts Proc | Eliot Sykes | 2015-11-27 | 1 | -1/+30 |
|/ | |||||
* | remove deprecated `:tokenizer` option from guide [ci skip] | yuuji.yaginuma | 2015-11-07 | 1 | -15/+0 |
| | | | | `:tokenizer` option was deprecated in 1c341eb7cbaeb52435f14c2595e391bfb2e5e38b | ||||
* | Merge pull request #20795 from benjiwheeler/validation_guide_ret_val | Sean Griffin | 2015-10-20 | 1 | -7/+15 |
|\ | | | | | activerecord guide: clarified roles of valid method and errors object [ci skip] | ||||
| * | activerecord guide: clarified roles of valid method and errors object [ci skip] | Ben Wheeler | 2015-07-08 | 1 | -7/+15 |
| | | |||||
* | | Replace `#=>` with `# =>` [ci skip] | amitkumarsuroliya | 2015-09-19 | 1 | -1/+1 |
| | | | | | | | | @rafaelfranca suggested in https://github.com/rails/rails/commit/f7c7bcd9c2a8b0e8c2840295d001d2d4dfd4cfae that code examples should display the result after `# =>` and not after `#=>`. | ||||
* | | Merge pull request #20897 from lukechesser/guide-fix-for-acceptance-validation | Arthur Nogueira Neves | 2015-09-14 | 1 | -3/+7 |
|\ \ | | | | | | | Update Validation guide for acceptance method | ||||
| * | | Update validation guide for acceptance method | Luke Chesser | 2015-07-16 | 1 | -3/+7 |
| |/ | |||||
* | | Updated MySQL documentation link to MySQL latest version 5.7 everywhere [ci ↵ | amitkumarsuroliya | 2015-09-10 | 1 | -1/+1 |
| | | | | | | | | | | skip] Bumps from `5.6` to `5.7` | ||||
* | | Merge pull request #17351 from akshat-sharma/master | Rafael Mendonça França | 2015-09-01 | 1 | -0/+10 |
|\ \ | |/ |/| | | | Add case_sensitive option for confirmation validation | ||||
| * | Add case_sensitive option for confirmation validation | Akshat Sharma | 2015-09-01 | 1 | -0/+10 |
| | | | | | | | | | | | | | | Case :- 1. In case of email confirmation one needs case insensitive comparison 2. In case of password confirmation one needs case sensitive comparison [ci skip] Update Guides for case_sensitive option in confirmation validation | ||||
* | | docs, clarify the meanaing of return values from validation methods. | Yves Senn | 2015-07-07 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | | | | | [ci skip] Closes #20792. Custom validation methods are implemented in terms of callbacks. The `validate` callback chain can't be halted using return values of individual callbacks. | ||||
* | | removed erroneous line. Corrected presence validation example. | Jurnell Cockhren | 2015-05-28 | 1 | -1/+0 |
| | | | | | | | | | | Addresses #20343. Removes erroneous line of code in the sample codeblock. | ||||
* | | Updated postgresql documentation link to use latest version [ci skip] | Ronak Jangir | 2015-05-20 | 1 | -1/+1 |
| | | |||||
* | | [ci skip] add to doc that acceptance validator allows `nil` by default | Roque Pinel | 2015-05-19 | 1 | -0/+1 |
| | | |||||
* | | [ci skip] Improve grammar/syntax in AR validations docs. | Tim Wade | 2015-05-16 | 1 | -12/+12 |
| | | |||||
* | | [ci skip] Uniquiness with scope can have one or more arguments | Angelo Capilleri | 2015-05-03 | 1 | -1/+1 |
| | | |||||
* | | [ci skip] Active Record Validations guide fixes | Jon Atack | 2015-03-25 | 1 | -3/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove deprecated `[]=` - Fix duplicate `errors#add` example. The second code example was originally `[]=`, replace it with `[] <<`. - Improve explanations for `errors#add` and `errors#full_messages` Follow-up to PR #19457 (closed after borking my git history). Apologies for the duplicate PR. cc @kaspth | ||||
* | | [ci-skip] correct doc about custom validators | Aditya Kapoor | 2015-02-27 | 1 | -2/+2 |
| | | |||||
* | | Oops :bomb: | Rafael Mendonça França | 2015-02-20 | 1 | -1/+1 |
| | | |||||
* | | Change the deprecation messages to show the preferred way to work with | Rafael Mendonça França | 2015-02-20 | 1 | -1/+1 |
| | | | | | | | | ActiveModel::Errors | ||||
* | | use `messages` instead of deprecated `ActiveModel::Errors#[]=` method [ci skip] | yuuji.yaginuma | 2015-02-20 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #18815 from tmingos/patch-1 | Zachary Scott | 2015-02-16 | 1 | -3/+2 |
|\ \ | | | | | | | Correct pluralization error | ||||
| * | | Edit text on optional db constraints for uniqueness validations [ci skip] | Taylor Mingos | 2015-02-04 | 1 | -3/+2 |
| | | | |||||
* | | | Tiny documentation edits [ci skip] | Robin Dupret | 2015-02-15 | 1 | -23/+24 |
|/ / | |||||
* | | fix regexp for validate an integer in guides [ci skip] | yuuji.yaginuma | 2015-01-22 | 1 | -1/+1 |
| | | |||||
* | | Add ActiveModel::Errors#details | Wojciech Wnętrzak | 2015-01-20 | 1 | -2/+56 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To be able to return type of validator, one can now call `details` on Errors instance: ```ruby class User < ActiveRecord::Base validates :name, presence: true end ``` ```ruby user = User.new; user.valid?; user.errors.details => {name: [{error: :blank}]} ``` | ||||
* | | - Changed `IN` to `ON` in markdown renderer condition | Vipul A M | 2015-01-14 | 1 | -1/+1 |
| | | | | | | | | - Changed `IN` to `ON` in all note sentences in guides. | ||||
* | | warn about reading guides in GitHub | Xavier Noria | 2014-12-23 | 1 | -0/+2 |
| | | | | | | | | References #18148. | ||||
* | | Adding information about 'allow_nil' option for 'numericality' [ci skip] | Andrey Nering | 2014-12-09 | 1 | -0/+2 |
| | | |||||
* | | Merge branch 'master' of github.com:rails/rails | Vijay Dev | 2014-11-04 | 1 | -1/+1 |
|\ \ | |||||
| * | | better example for tokenizer lambda [ci skip] | Robin Tweedie | 2014-10-29 | 1 | -1/+1 |
| |/ | | | | | | | | | Splitting on whitespace makes more sense in the context of counting words in an essay. | ||||
* / | [ci skip] Add missing blank line to AR validation. | Juanito Fatas | 2014-10-25 | 1 | -0/+1 |
|/ | |||||
* | fix wrong #17318 [ci skip] | Igor Kapkov | 2014-10-19 | 1 | -1/+1 |
| | |||||
* | make guides example more friendly to nonlatin langs | Igor Kapkov | 2014-10-19 | 1 | -1/+1 |
| | |||||
* | mention the :without option [ci skip] | Rob | 2014-10-16 | 1 | -0/+2 |
| | | | As pointed out in the ActiveModel::Validations::HelperMethods #validates_format_of documentation. | ||||
* | Clarify possible validations you can use to avoid a NULL boolean value | Zachary Scott | 2014-10-03 | 1 | -2/+8 |
| | | | | in the database. Closes #16304 [ci skip] | ||||
* | [Guides] Sentence break for clarity [ci-skip] | Max Goldstein | 2014-07-11 | 1 | -2/+2 |
| | |||||
* | Fix guide. sample code syntax error.[ci skip] | tbpgr | 2014-07-04 | 1 | -1/+1 |
| |