silly silly silly mistake
| 40 | 41 | |
|---|---|---|
| 103 | 103 | def write_activity_log(action = :update) |
| 104 | 104 | set_culprit |
| 105 | 105 | set_referenced |
| 106 | ||
| 107 | 106 | if self.respond_to?(:created_at) && Time.now > self.delay_after_create.since(self.created_at) or action == :create |
| 108 | 107 | r = self.activity_logs.create :action => action.to_s, |
| 109 | 108 | :referenced => @referenced, |
| 110 | :culprit => @culprit if @skip_log == true | |
| 109 | :culprit => @culprit unless @skip_log == true | |
| 111 | 110 | end |
| 112 | 111 | @skip_log = false |
| 113 | 112 | end |
