1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00
paper-trail-gem--paper_trail/spec/models
Tyler Rick 3960d7ff75 Add paper_trail.update_columns (#1037)
* Add paper_trail.update_columns

Add paper_trail.update_columns so you can record a version when using
update_columns (which skips all callbacks, including the after_update
callback).

* Change recordable_object_changes to not have a default for the changes
argument so that we don't need an exception to
Style/MethodCallWithoutArgsParentheses

* Add back the duplication between record_update and
record_update_columns, at @jaredbeck's request

* - Add Changelog entry for `paper_trail.update_columns`
- Use a guard in `record_update_columns`
- Use Timecop.freeze so that we can guarantee that an expectation will pass
- Add some comments
2018-01-22 22:21:08 -05:00
..
family Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
kitchen Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
on Add paper_trail.update_columns (#1037) 2018-01-22 22:21:08 -05:00
animal_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
article_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
boolit_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
callback_modifier_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
car_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
custom_primary_key_record_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
document_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
fruit_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
gadget_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
joined_version_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
json_version_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
legacy_widget_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
not_on_update_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
person_spec.rb Use base class name for reification instead of class name to reify polymorphic models properly 2017-12-21 23:17:12 +01:00
pet_spec.rb Use base class name for reification instead of class name to reify polymorphic models properly 2017-12-21 23:17:12 +01:00
post_with_status_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
skipper_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
thing_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
translation_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
vehicle_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
version_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
widget_spec.rb Add paper_trail.update_columns (#1037) 2018-01-22 22:21:08 -05:00