Commit f17fe7fff2809720e13e84c1aea61878b8559e9d
1 parent
7bab81b1
Exists in
master
and in
4 other branches
correct indentation in activity observer
Showing
2 changed files
with
14 additions
and
15 deletions
Show diff stats
app/observers/activity_observer.rb
... | ... | @@ -21,22 +21,22 @@ class ActivityObserver < ActiveRecord::Observer |
21 | 21 | end |
22 | 22 | |
23 | 23 | def after_close(record, transition) |
24 | - Event.create( | |
25 | - project: record.project, | |
26 | - target_id: record.id, | |
27 | - target_type: record.class.name, | |
28 | - action: Event::CLOSED, | |
29 | - author_id: record.author_id_of_changes | |
30 | - ) | |
24 | + Event.create( | |
25 | + project: record.project, | |
26 | + target_id: record.id, | |
27 | + target_type: record.class.name, | |
28 | + action: Event::CLOSED, | |
29 | + author_id: record.author_id_of_changes | |
30 | + ) | |
31 | 31 | end |
32 | 32 | |
33 | 33 | def after_reopen(record, transition) |
34 | - Event.create( | |
35 | - project: record.project, | |
36 | - target_id: record.id, | |
37 | - target_type: record.class.name, | |
38 | - action: Event::REOPENED, | |
39 | - author_id: record.author_id_of_changes | |
40 | - ) | |
34 | + Event.create( | |
35 | + project: record.project, | |
36 | + target_id: record.id, | |
37 | + target_type: record.class.name, | |
38 | + action: Event::REOPENED, | |
39 | + author_id: record.author_id_of_changes | |
40 | + ) | |
41 | 41 | end |
42 | 42 | end | ... | ... |