Constants in Events looks good now
This commit is contained in:
parent
b9f8b40190
commit
839957cf56
13 changed files with 43 additions and 43 deletions
|
@ -26,7 +26,7 @@ class ActivityObserver < ActiveRecord::Observer
|
|||
project: record.project,
|
||||
target_id: record.id,
|
||||
target_type: record.class.name,
|
||||
action: (record.closed ? Event::Closed : Event::Reopened),
|
||||
action: (record.closed ? Event::CLOSED : Event::REOPENED),
|
||||
author_id: record.author_id_of_changes
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue