aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/persistence.rb
Commit message (Expand)AuthorAgeFilesLines
* Refactor `attributes_for_{create,update}` to avoid an extra allocationRyuta Kamizono2018-08-311-2/+0
* Remove `attributes_with_values_for_{create,update}` for internal useRyuta Kamizono2018-08-301-2/+5
* Avoid extra scoping when using `Relation#update`Ryuta Kamizono2018-07-311-3/+1
* Fix documentation based on feedbackAaron Patterson2018-06-261-2/+6
* Speed up homogeneous AR lists / reduce allocationsAaron Patterson2018-06-251-1/+7
* `becomes` should clear the mutation tracker which is created in `after_initia...Ryuta Kamizono2018-05-111-1/+1
* Allow `primary_key` argument to `empty_insert_statement_value`Yasuo Honda2018-04-201-1/+1
* Fix that `touch(:updated_at)` causes multiple assignments on the columnRyuta Kamizono2018-03-231-1/+1
* Revert "PERF: Recover `changes_applied` performance (#31698)"Sean Griffin2018-03-061-0/+1
* Fix that after commit callbacks on update does not triggered when optimistic ...Ryuta Kamizono2018-03-061-10/+14
* Introduce `_update_row` to decouple optimistic locking concern from `Persiste...Ryuta Kamizono2018-03-051-28/+14
* Introduce `_delete_record` and use it for deleting a recordRyuta Kamizono2018-03-051-8/+14
* Prefer `_update_record` than `update_all` for updating a recordRyuta Kamizono2018-03-051-23/+33
* Refactor `_substitute_values` to be passed attribute names and valuesRyuta Kamizono2018-03-051-7/+7
* `id_in_database` should be respected as primary key value for persisted recordsRyuta Kamizono2018-03-051-1/+1
* `id_in_database` do not return nil value for persisted recordRyuta Kamizono2018-03-041-3/+3
* Ensure we don't write virtual attributes on update, tooSean Griffin2018-02-261-1/+1
* Never attempt to write virtual attributes to the databaseSean Griffin2018-02-261-1/+3
* Deprecate update_attributes and update_attributes!Eddie Lebow2018-02-171-0/+2
* Ignores a default subclass when `becomes(Parent)`Leonel Galan2018-01-221-1/+2
* PERF: Recover `changes_applied` performance (#31698)Ryuta Kamizono2018-01-221-1/+0
* Don't allow destroyed object mutation after `save` or `save!` is calledRyuta Kamizono2018-01-151-0/+1
* save attributes changed by callbacks after update_attributeMike Busch2017-12-221-5/+1
* Class level `update` and `destroy` checks all the records exist before making...Ryuta Kamizono2017-12-011-9/+4
* Maintain raising `RecordNotFound` for class level `update` and` destroy`Ryuta Kamizono2017-12-011-4/+9
* Avoid creating extra `relation` and `build_arel` in `_create_record` and `_up...Ryuta Kamizono2017-11-171-2/+41
* Merge pull request #30471 from dylanahsmith/remove-redundant-trackerAaron Patterson2017-09-271-1/+1
|\
| * activerecord: Remove a redundant mutation trackerDylan Thacker-Smith2017-08-301-1/+1
* | `id` (primary key) is not only an integer [ci skip]Ryuta Kamizono2017-09-181-1/+1
* | Ensure returning affected objects for class level `update` and `destroy`Ryuta Kamizono2017-09-181-2/+4
* | Place class level `update`, `destroy`, and `delete` in `Persistence::ClassMet...Ryuta Kamizono2017-09-181-0/+92
|/
* Use tt in doc for ActiveRecord [ci skip]Yoshiyuki Hirano2017-08-271-2/+2
* Use `_relation_for_itself` wherever possibleSean Griffin2017-07-261-3/+2
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
* `Persistence#delete` should not be affected by scopingRyuta Kamizono2017-07-181-1/+5
* Merge pull request #29495 from eugeneius/_write_attributeMatthew Draper2017-07-091-1/+1
|\
| * Rename raw_write_attribute to write_attribute_without_type_castEugene Kenny2017-07-071-1/+1
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
* | Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
* | Fix ActiveRecord::Persistence#touch with lockingbogdanvlviv2017-06-211-1/+1
|/
* Prevent double firing the before save callback of new object when the parent ...Ryuta Kamizono2017-04-211-6/+20
* Docs: Specify return value of `save!`Jared Beck2017-01-301-0/+2
* Add the touch option to ActiveRecord#increment! and decrement!akihiro172017-01-141-6/+10
* Merge pull request #25427 from eugeneius/update_increment_documentationKasper Timm Hansen2017-01-081-8/+8
|\
| * Update increment! documentation [ci skip]Eugene Kenny2016-08-151-8/+8
* | [ci skip] Find and record the article! 🤓Kasper Timm Hansen2017-01-031-2/+2
* | Emulate db trigger behaviour for after_commit :destroy, :updateStefan Budeanu2016-12-091-3/+11
* | Deprecate the behavior of AR::Dirty inside of after_(create|update|save) call...Sean Griffin2016-11-011-3/+7
* | Fix code formatting in `#save` RDoc [ci skip]Adam Crownoble2016-09-251-2/+2
* | Return true if attribute is not changed for update_attributePrathamesh Sonpatki2016-09-231-1/+2