Commit Graph

17 Commits

Author SHA1 Message Date
Stefan Huber 13775e16a4 Fixing versions creation without controller.
Additionally fixing a leakage within the tests
2011-04-07 01:21:57 +01:00
Andy Stewart 3b99221015 Fix bug where PaperTrail was disabled in controller by default. 2011-04-06 14:30:40 +01:00
Andy Stewart bb79fab9e9 Rename enable/disable methods to clarify intention. 2011-04-05 09:08:54 +01:00
Andy Stewart cf318c284e Whitespace. 2011-04-04 17:44:41 +01:00
Jonas Höglund 9a1bcff68b paper_trail_enabled_if overrides global settings 2011-03-18 11:05:57 +01:00
Jonas Höglund ff818e3acc Added the possibility to disable/enable PaperTrail from a controller 2011-03-18 09:50:34 +01:00
Andy Stewart 36a4b9b323 Convert to Rails 3 idioms. 2011-02-08 17:16:35 +00:00
Andy Stewart 6f58a59523 Ditch Jeweler: more trouble than it's worth. 2010-10-12 13:15:56 +01:00
Andy Stewart c71ef98895 Remove comment. See issue 17. 2010-09-03 10:08:08 +01:00
Andy Stewart 15559af8b2 Explicitly require singleton.
Seems to be needed for Rails 3 beta 3.
2010-04-27 17:25:08 +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 9332ff25c2 Make PaperTrail threadsafe. 2010-03-19 14:19:01 +00:00
Andy Stewart ef09502001 Try to call current_user regardless of its visibility. 2009-07-24 08:19:16 +01:00
Andy Stewart f1e29eabcd Let Jeweler manage version. 2009-05-27 16:42:45 +01:00
Andy Stewart e9a8648c22 First commit. 2009-05-27 16:21:20 +01:00