Rename issuable to IssueBase

Given the the Issuable class will soon also have to support MRs this
signals that it can only be used by issues.
This commit is contained in:
Z.J. van de Weg 2017-02-08 16:42:27 +01:00
parent bbb7fbcd02
commit 1efa8f2e15
4 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
module Gitlab
module ChatCommands
module Presenters
module Issuable
module IssueBase
def color(issuable)
issuable.open? ? '#38ae67' : '#d22852'
end

View file

@ -2,7 +2,7 @@ module Gitlab
module ChatCommands
module Presenters
class IssueNew < Presenters::Base
include Presenters::Issuable
include Presenters::IssueBase
def present
in_channel_response(new_issue)

View file

@ -2,7 +2,7 @@ module Gitlab
module ChatCommands
module Presenters
class IssueSearch < Presenters::Base
include Presenters::Issuable
include Presenters::IssueBase
def present
text = if @resource.count >= 5

View file

@ -2,7 +2,7 @@ module Gitlab
module ChatCommands
module Presenters
class IssueShow < Presenters::Base
include Presenters::Issuable
include Presenters::IssueBase
def present
if @resource.confidential?