diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-05-12 23:31:53 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-05-16 22:52:03 +0300 |
commit | b2fc0a51a61669b46516c2a21cbd0abd893ff124 (patch) | |
tree | 25b2c4dbef8192b59b517daa79141d36456ca0ac /app/models/event.rb | |
parent | 8a7b5b17d325e13c989098c7e763de1f43505780 (diff) |
Rename `Event#note_commit?` to `commit_note?`
Diffstat (limited to 'app/models/event.rb')
-rw-r--r-- | app/models/event.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/event.rb b/app/models/event.rb index a617694b7dd..5629f1ee445 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -278,7 +278,7 @@ class Event < ActiveRecord::Base Commit.truncate_sha(note_commit_id) end - def note_commit? + def commit_note? target.for_commit? end @@ -295,7 +295,7 @@ class Event < ActiveRecord::Base end def note_target_id - if note_commit? + if commit_note? target.commit_id else target.noteable_id.to_s |