Open jimishjoban opened 11 years ago
@jimishjoban I guess this is a little out of date now, sorry! :watch:
The creator
is assigned using a method on the model you're tracking and uses the options you've set at initialization. This method can be easily overridden on a class by class basis. Something like this might suit you:
class Comment < ActiveRecord::Base
def creator
# Whatever you want to assign as the creator
if new_record?
super
else
editors.last
end
end
end
Hey guys,
Great gem! Found this issue:
Lets say User A creates a new comment. User B (Moderator) edits this comment. Changes are recorded fine... But if we do
It would print User A as the crumb creator instead of User B...