While acts_as_audited
works fine with my models, I have a rake task which imports an XML file into my database. All the actions which are performed by this task (mainly create and update) are not picked up by the acts_as_audited. For the record I have added Audit.as_user(User.current_user) do; ... ; end
in the rake task file and to the class which performs the actual task.
Can I use acts_as_audited in a rake task?
141 Views Asked by Cacofonix At
2
acts_as_audited works with models which is an abstract of database table. It will log the altered table/model name, current column value and modified column value. Rake Tasks are not possible to log.