Emmanuel Gomez
be57b8d2af
Normalize terminology.
2011-02-06 00:31:21 -08:00
Emmanuel Gomez
fa98219bbf
Some small tweaks in PaperTrail::Model.
2011-02-05 23:46:06 -08:00
Emmanuel Gomez
a23144fc04
One more Version scope for PaperTrail::Model.
2011-02-05 23:44:56 -08:00
Franco Catena
9f431664db
Fix don't create trail on destroy with Rails 3.0.2
2010-11-16 15:34:50 -03:00
Mikl Kurkov
3ff8dff7dc
Fix don't create trail on destroy if record was not persisted
2010-10-28 19:01:27 +04:00
Andy Stewart
008c84bfd3
Make private methods that should be private.
2010-10-28 11:14:19 +01:00
Andy Stewart
fce1c908ef
Use :write_attribute everywhere. Add tests.
2010-10-28 10:15:15 +01:00
Andy Stewart
100eb53c9e
Improve automatic reification of has_one associations.
...
This still isn't optimal but it should be good enough most of the time.
You can tweak it or turn it off if you like.
2010-10-21 14:04:28 +01:00
Andy Stewart
aa00ccae02
Add convenience method to find out if instance is live.
2010-10-21 12:30:50 +01:00
Andy Stewart
9728e3158e
Automatically restore has_one associations.
2010-10-20 13:48:52 +01:00
Andy Stewart
f27763bf57
Clarify who was responsible for changes.
...
N.B. This commit adds an `originator` method to the Active::Record
mixin so be careful if your AR object already has a method of the same
name.
2010-06-28 14:03:35 +01:00
Andy Stewart
424724d678
Simplify code.
2010-06-28 11:27:08 +01:00
Andy Stewart
b43400e33b
Navigate to an item's previous and next version.
2010-06-22 14:42:57 +01:00
Andy Stewart
cc794c1002
Whitespace.
2010-06-22 14:42:57 +01:00
Andy Stewart
cc835027fa
Navigate back to reified item's version.
2010-06-22 14:42:53 +01:00
Andy Stewart
5405806b95
Add comments to explain InstanceMethods.
2010-04-06 17:27:15 +01:00
Andy Stewart
3036aa75b5
Store controller info. Allow other current_user methods.
...
PaperTrail can now store any information from the controller or request.
It's also easy to choose a method other than `current_user` for
PaperTrail to call to find out who was responsible for changes.
2010-03-19 18:53:49 +00:00
Andy Stewart
e68c2f965f
Refactor to separate concerns (model, controller).
2010-03-19 17:21:16 +00:00
Andy Stewart
4f4f814500
Global enable/disable for PaperTrail.
...
Thanks to these commits from jeremyw:
* 9254147
* 3748fd3..66463e6
2010-03-19 15:21:07 +00:00
Andy Stewart
4e1f3c8845
Added comments.
2010-02-18 16:35:41 +00:00
Andy Stewart
aadb158d13
Add tests for version_at instance method (and fix logic).
...
Manually extracted from commit 6ee25ef92593e87f87d1a29af74c6e3aaa92b566.
2010-02-18 16:22:26 +00:00
Jeremy Weiskotten
1aa0284bbe
Added version_at instance method to model.
2010-02-18 15:46:30 +00:00
Andy Stewart
55185cd448
Store user-defined metadata.
2010-01-06 12:57:54 +00:00
Andy Stewart
52981bfca3
Optionally ignore attributes.
2009-10-28 13:12:36 +00:00
Andy Stewart
e9a8648c22
First commit.
2009-05-27 16:21:20 +01:00