paper-trail-gem--paper_trail/spec
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
..
controllers Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
dummy_app Raise helpful error when CVC is abstract 2018-01-22 00:23:51 -05:00
generators/paper_trail Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
models Add paper_trail.update_columns (#1037) 2018-01-22 22:21:08 -05:00
paper_trail Raise helpful error when CVC is abstract 2018-01-22 00:23:51 -05:00
requests Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
support Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
paper_trail_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
spec_helper.rb We don't need database_cleaner except testing rails 4.2 2017-12-20 22:47:55 -05:00