Contains common functionality shared between Issues and MergeRequests

Namespace
Methods
I
N
T
Instance Public methods
is_assigned?()
# File app/roles/issue_commonality.rb, line 51
def is_assigned?
  !!assignee_id
end
is_being_closed?()
# File app/roles/issue_commonality.rb, line 59
def is_being_closed?
  closed_changed? && closed
end
is_being_reassigned?()
# File app/roles/issue_commonality.rb, line 55
def is_being_reassigned?
  assignee_id_changed?
end
is_being_reopened?()
# File app/roles/issue_commonality.rb, line 63
def is_being_reopened?
  closed_changed? && !closed
end
new?()
# File app/roles/issue_commonality.rb, line 47
def new?
  today? && created_at == updated_at
end
today?()
# File app/roles/issue_commonality.rb, line 43
def today?
  Date.today == created_at.to_date
end