1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00

add documentation for paper_trail-globalid extentsion

This commit is contained in:
ankit1910 2016-02-07 17:09:46 +05:30
parent 9b44da5a70
commit 30237e470f

View file

@ -767,6 +767,10 @@ last_version.paper_trail_originator # 'Alice'
last_version.terminator # 'Bob' last_version.terminator # 'Bob'
``` ```
**Storing Actual object using globalid:**
Sometimes you might want to retrieve actual ActiveRecord object in whoddunit. You can achieve this using an extention. [PaperTrailGlobalid][37]
## Associations ## Associations
**Experimental feature**, see caveats below. **Experimental feature**, see caveats below.
@ -1546,3 +1550,4 @@ Released under the MIT licence.
[34]: https://github.com/rails/rails/blob/591a0bb87fff7583e01156696fbbf929d48d3e54/activerecord/lib/active_record/fixtures.rb#L142 [34]: https://github.com/rails/rails/blob/591a0bb87fff7583e01156696fbbf929d48d3e54/activerecord/lib/active_record/fixtures.rb#L142
[35]: https://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html [35]: https://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html
[36]: http://www.postgresql.org/docs/9.4/interactive/ddl.html [36]: http://www.postgresql.org/docs/9.4/interactive/ddl.html
[37]: https://github.com/ankit1910/paper_trail-globalid