aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
Commit message (Expand)AuthorAgeFilesLines
* Add *_previously_was attribute methods when dirty tracking (#36836)David Heinemeier Hansson2019-08-011-1/+7
* It may be better to explicitly require 'object/try' where we call `try`Akira Matsuda2019-08-011-0/+2
* Use `try` only when we're unsure if the receiver would respond_to the methodAkira Matsuda2019-08-011-10/+10
* Accessing ivar with Symbols might be just a very little bit better than with ...Akira Matsuda2019-07-311-1/+1
* Use match? where we don't need MatchDataAkira Matsuda2019-07-291-2/+2
* Add AS::TimeZone#match?Akira Matsuda2019-07-291-1/+1
* Use match? where we don't need MatchDataAkira Matsuda2019-07-271-1/+1
* Merge pull request #36005 from shioyama/plain_matcher_firstRafael França2019-07-251-9/+1
|\
| * Remove plain methodChris Salzberg2019-05-311-4/+0
| * Make plain matcher match first, not lastChris Salzberg2019-05-311-5/+1
* | Fixed the typo in the deprecation error messages. Followup #36738Abhay Nikam2019-07-231-1/+1
* | Modify behaviour of `AM::Errors#to_h`:Edouard CHIN2019-07-231-2/+6
* | Deprecated `AM::Errors#to_h`:Edouard CHIN2019-07-231-0/+6
* | Fix deprecation on `AM::Errors` when each is called indirectly:Edouard CHIN2019-07-201-1/+1
* | Switch to use `class_attribute`:Edouard CHIN2019-07-161-4/+3
* | Move the `ActiveModel:Errors#full_message` method to the `Error` class:Edouard CHIN2019-07-164-83/+92
* | Merge pull request #36654 from Edouard-chin/ec-errors-deleteRafael França2019-07-151-1/+1
|\ \
| * | Returns `nil` when `AM::Errors#delete` doesn't delete anything:Edouard CHIN2019-07-111-1/+1
* | | Merge pull request #36649 from Edouard-chin/ec-errors-strit-match-collectionRafael França2019-07-151-2/+2
|\ \ \
| * | | Fix `AM::Errors.added?` trying to generate a message:Edouard CHIN2019-07-101-2/+2
| |/ /
* | | Merge pull request #36640 from Edouard-chin/ec-uniq-validation-fixRafael França2019-07-151-1/+1
|\ \ \
| * | | Fix errors getting duplicated when passed validations options:Edouard CHIN2019-07-101-1/+1
| |/ /
* / / active_support/deprecation has to be already required via active_support/rail...Akira Matsuda2019-07-121-1/+0
|/ /
* | Update docs on dirty.rbJohn Gesimondo2019-07-051-1/+1
* | Avoid redundant `time.getutc` call if it is already utc time objectRyuta Kamizono2019-06-182-5/+5
* | Enable `Layout/EmptyLinesAroundAccessModifier` copRyuta Kamizono2019-06-1328-31/+0
|/
* Don't round off subseconds unless necessaryRyuta Kamizono2019-05-281-3/+10
* Merge pull request #36092 from imechemi/update-docGannon McGibbon2019-05-131-0/+7
|\
| * Improve doc for :root option in as_json() [ci skip]Tenzin Chemi2019-05-131-0/+7
* | Recover perf for `pluck` by reverting 9c9c950d02af83742a5f76302d0faa99508f242c.Guo Xiang Tan2019-05-031-0/+5
* | any? should be delegated to the errors listAaron Patterson2019-04-301-1/+1
|/
* Change the deprecation for Enumerating ActiveModel::Errors to Rails 6.1 inste...Abhay Nikam2019-04-251-5/+5
* Merge pull request #32313 from lulalala/model_error_as_objectRafael França2019-04-244-118/+355
|\
| * Set default array to detailslulalala2019-03-311-1/+9
| * Fix messages[]= does not override valuelulalala2019-03-311-0/+1
| * Freeze DeprecationHandling array and hashlulalala2019-03-311-13/+20
| * Fix equality comparison raising error buglulalala2019-03-311-1/+1
| * Fix speclulalala2019-03-311-1/+1
| * Split messages and to_hashlulalala2019-03-311-18/+21
| * Raise deprecation for calling `[:f] = 'b'` or `[:f] << 'b'`lulalala2019-03-311-4/+46
| * Add deprecation to slice!lulalala2019-03-311-0/+2
| * Nested attribute error's attribute name to use different key:lulalala2019-03-311-1/+1
| * String override options in #import to convert to symbollulalala2019-03-311-0/+5
| * Allow errors to remove duplicates, and ensure cyclic associations w/ autosave...lulalala2019-03-312-1/+16
| * Add messages_forlulalala2019-03-311-1/+7
| * Add a transitional method `objects`, for accessing the array directly.lulalala2019-03-311-0/+1
| * Backward compatibility for errors.collect/select etc.lulalala2019-03-311-2/+2
| * Add convenience method group_by_attributelulalala2019-03-311-20/+9
| * Change errorslulalala2019-03-312-109/+190
| * Add ActiveModel::Error and NestedErrorlulalala2019-03-313-16/+93