Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | removes usage of Object#in? from the code base (the method remains defined ↵ | Xavier Noria | 2012-08-06 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | by Active Support) Selecting which key extensions to include in active_support/rails made apparent the systematic usage of Object#in? in the code base. After some discussion in https://github.com/rails/rails/commit/5ea6b0df9a36d033f21b52049426257a4637028d we decided to remove it and use plain Ruby, which seems enough for this particular idiom. In this commit the refactor has been made case by case. Sometimes include? is the natural alternative, others a simple || is the way you actually spell the condition in your head, others a case statement seems more appropriate. I have chosen the one I liked the most in each case. | ||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-08-04 | 15 | -278/+765 |
|\ | | | | | | | | | | | Conflicts: activemodel/lib/active_model/secure_password.rb activerecord/lib/active_record/associations/collection_proxy.rb | ||||
| * | copy edits [ci skip] | Vijay Dev | 2012-08-04 | 1 | -1/+1 |
| | | |||||
| * | Fix ActiveModel::Serializers::Xml#to_xml reference | Robert Pankowecki | 2012-08-02 | 1 | -1/+1 |
| | | | | | | | | Link to ActiveRecord::Serialization#to_xml for more details | ||||
| * | update ActiveModel::Observer documentation [ci skip] | Francesco Rodriguez | 2012-07-31 | 1 | -21/+32 |
| | | |||||
| * | update ActiveModel::ObserverArray documentation [ci skip] | Francesco Rodriguez | 2012-07-30 | 1 | -3/+4 |
| | | |||||
| * | add :nodoc: to ActiveModel::Observing#inherited [ci skip] | Francesco Rodriguez | 2012-07-30 | 1 | -1/+1 |
| | | |||||
| * | update ActiveModel::Observing documentation [ci skip] | Francesco Rodriguez | 2012-07-30 | 1 | -25/+125 |
| | | |||||
| * | update ActiveModel::Serializers documentation [ci skip] | Francesco Rodriguez | 2012-07-30 | 2 | -14/+40 |
| | | |||||
| * | add documentation to ActiveModel #from_json method [ci skip] | Francesco Rodriguez | 2012-07-30 | 1 | -2/+34 |
| | | |||||
| * | fix #after_validation example [ci skip] | Francesco Rodriguez | 2012-07-30 | 1 | -1/+1 |
| | | |||||
| * | add :nodoc: directives to ActiveModel Sanitizers [ci skip] | Francesco Rodriguez | 2012-07-29 | 1 | -4/+4 |
| | | |||||
| * | fix class reference in AM::MassAssignmentSecurity documentation [ci skip] | Francesco Rodriguez | 2012-07-29 | 1 | -3/+3 |
| | | |||||
| * | update ActiveModel::Validations::Callbacks documentation [ci skip] | Francesco Rodriguez | 2012-07-29 | 1 | -18/+69 |
| | | |||||
| * | update #validates and #validates! documentation [ci skip] | Francesco Rodriguez | 2012-07-29 | 1 | -31/+43 |
| | | |||||
| * | update ActiveModel::Valdations#validates_with docs [ci skip] | Francesco Rodriguez | 2012-07-29 | 1 | -16/+18 |
| | | |||||
| * | update ActiveModel::Validations docs [ci skip] | Francesco Rodriguez | 2012-07-29 | 2 | -36/+127 |
| | | |||||
| * | update ActiveModel::Validator docs [ci skip] | Francesco Rodriguez | 2012-07-29 | 2 | -11/+11 |
| | | |||||
| * | update ActiveModel::SecurePassword docs [ci skip] | Francesco Rodriguez | 2012-07-29 | 1 | -18/+38 |
| | | |||||
| * | add example to ActiveModel::StrictValidationFailed [ci skip] | Francesco Rodriguez | 2012-07-28 | 1 | -0/+13 |
| | | |||||
| * | add example to ActiveModel::MissingAttributeError [ci skip] | Francesco Rodriguez | 2012-07-28 | 1 | -0/+8 |
| | | |||||
| * | update ActiveModel::MassAssignmentSecurity docs [ci skip] | Francesco Rodriguez | 2012-07-28 | 1 | -65/+177 |
| | | |||||
| * | add example to ActiveModel::Naming#model_name [ci skip] | Francesco Rodriguez | 2012-07-27 | 1 | -0/+8 |
| | | |||||
| * | fix AM::Naming examples [ci skip] | Francesco Rodriguez | 2012-07-27 | 1 | -12/+12 |
| | | |||||
| * | add :nodoc: directive to AM::ObserverArray internal methods [ci skip] | Francesco Rodriguez | 2012-07-22 | 1 | -10/+10 |
| | | |||||
* | | Merge pull request #7253 from acapilleri/lenght_validator_errors_options | Rafael Mendonça França | 2012-08-03 | 1 | -2/+2 |
|\ \ | | | | | | | calculate errors_options one time in validate_each | ||||
| * | | 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 | ||||
* | | | Remove ActiveRecord::Base.to_a | Jon Leighton | 2012-08-03 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | On reflection, it seems like a bit of a weird method to have on ActiveRecord::Base, and it shouldn't be needed most of the time anyway. | ||||
* | | | load active_support/deprecation in active_support/rails | Xavier Noria | 2012-08-02 | 2 | -2/+0 |
| | | | |||||
* | | | load active_support/core_ext/module/delegation in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | | | |||||
* | | | load active_support/core_ext/class/attribute in active_support/rails | Xavier Noria | 2012-08-02 | 4 | -4/+0 |
| | | | |||||
* | | | load active_support/concern in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | | | |||||
* | | | load active_support/core_ext/object/inclusion in active_support/rails | Xavier Noria | 2012-08-02 | 2 | -2/+0 |
| | | | |||||
* | | | load active_support/core_ext/object/blank in active_support/rails | Xavier Noria | 2012-08-02 | 5 | -5/+0 |
| | | | |||||
* | | | defines a private require-hub active_support/rails | Xavier Noria | 2012-08-02 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | This is a private place to put those AS features that are used by every component. Nowadays we cherry-pick individual files wherever they are used, but that it is not worth the effort for stuff that is going to be loaded for sure sooner or later, like blank?, autoload, concern, etc. | ||||
* | | | has_secure_password should not raise a 'digest missing' error if the calling ↵ | Robby Grossman | 2012-07-31 | 3 | -2/+21 |
|/ / | | | | | | | class has specified for validations to be skipped. | ||||
* | | ActiveRecord::Base.all returns a Relation. | Jon Leighton | 2012-07-27 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | Previously it returned an Array. If you want an array, call e.g. `Post.to_a` rather than `Post.all`. This is more explicit. In most cases this should not break existing code, since Relations use method_missing to delegate unknown methods to #to_a anyway. | ||||
* | | fix typo in callbacks test | Accessd | 2012-07-24 | 1 | -2/+2 |
|/ | |||||
* | Update documentation and change the range method name to delimiter. | Rafael Mendonça França | 2012-07-20 | 3 | -5/+7 |
| | |||||
* | Don't pass `:within` option to the i18n | Rafael Mendonça França | 2012-07-20 | 3 | -2/+24 |
| | |||||
* | `validates_inclusion_of` and `validates_exclusion_of` now accept | Rafael Mendonça França | 2012-07-20 | 3 | -3/+26 |
| | | | | | | `:within` option as alias of `:in` as documented. Fix #7118 | ||||
* | AM::Validations: remove documentation duplicates | Bogdan Gusiev | 2012-07-10 | 9 | -119/+52 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-07-07 | 13 | -152/+199 |
|\ | |||||
| * | add :nodoc: to internal implementations of AM::Validator [ci skip] | Francesco Rodriguez | 2012-07-06 | 2 | -3/+3 |
| | | |||||
| * | update ActiveModel::Serialization documentation [ci skip] | Francesco Rodriguez | 2012-07-06 | 1 | -14/+36 |
| | | |||||
| * | fix syntax of AM::Validations::HelperMethods examples [ci skip] | Francesco Rodriguez | 2012-07-05 | 4 | -6/+6 |
| | | |||||
| * | update ActiveModel::Validations::HelperMethods documentation [ci skip] | Francesco Rodriguez | 2012-07-05 | 8 | -130/+141 |
| | | |||||
| * | update ActiveModel::Conversion documentation [ci skip] | Francesco Rodriguez | 2012-07-04 | 1 | -3/+15 |
| | | |||||
| * | Changed attr_accessible example to reflect grouped roles | Laknath | 2012-07-01 | 1 | -2/+4 |
| | | | | | | | | | | Related to the request #5699 - https://github.com/rails/rails/pull/5699 and not documented. | ||||
* | | Merge pull request #6938 from acapilleri/as_json_refactoring | Carlos Antonio da Silva | 2012-07-07 | 1 | -2/+6 |
|\ \ | | | | | | | Small refactoring of as_json method |