Update README for PaperTrail::Version#where_object_changes [ci skip]
This commit is contained in:
parent
1ad78383aa
commit
f477b0eecf
|
@ -93,7 +93,7 @@ in the `PaperTrail::Version` class through a `Rails::Engine` when the gem is use
|
||||||
with Rails `4.1.0.rc1`.
|
with Rails `4.1.0.rc1`.
|
||||||
- [#334](https://github.com/airblade/paper_trail/pull/334) - Add small-scope `whodunnit` method to `PaperTrail::Model::InstanceMethods`.
|
- [#334](https://github.com/airblade/paper_trail/pull/334) - Add small-scope `whodunnit` method to `PaperTrail::Model::InstanceMethods`.
|
||||||
- [#329](https://github.com/airblade/paper_trail/issues/329) - Add `touch_with_version` method to `PaperTrail::Model::InstanceMethods`,
|
- [#329](https://github.com/airblade/paper_trail/issues/329) - Add `touch_with_version` method to `PaperTrail::Model::InstanceMethods`,
|
||||||
to allow for generating a version `touch`ing a model.
|
to allow for generating a version while `touch`ing a model.
|
||||||
- [#328](https://github.com/airblade/paper_trail/pull/328) / [#326](https://github.com/airblade/paper_trail/issues/326) /
|
- [#328](https://github.com/airblade/paper_trail/pull/328) / [#326](https://github.com/airblade/paper_trail/issues/326) /
|
||||||
[#307](https://github.com/airblade/paper_trail/issues/307) - `Model.paper_trail_enabled_for_model?` and
|
[#307](https://github.com/airblade/paper_trail/issues/307) - `Model.paper_trail_enabled_for_model?` and
|
||||||
`model_instance.without_versioning` is now thread-safe.
|
`model_instance.without_versioning` is now thread-safe.
|
||||||
|
|
|
@ -174,7 +174,10 @@ version.event
|
||||||
# Query versions objects by attributes.
|
# Query versions objects by attributes.
|
||||||
PaperTrail::Version.where_object(attr1: val1, attr2: val2)
|
PaperTrail::Version.where_object(attr1: val1, attr2: val2)
|
||||||
|
|
||||||
# Query versions object_changes field by attributes (requires [`object_changes`](https://github.com/airblade/paper_trail#diffing-versions) column on versions table). Also can't guarantee consistent results for values of type Fixnum due to limitations of wildcard matchers against the column.
|
# Query versions object_changes field by attributes (requires
|
||||||
|
# `object_changes` column on versions table).
|
||||||
|
# Also can't guarantee consistent query results for values of type Fixnum
|
||||||
|
# due to limitations of SQL wildcard matchers against the serialized objects.
|
||||||
PaperTrail::Version.where_object_changes(attr1: val1)
|
PaperTrail::Version.where_object_changes(attr1: val1)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue