# module IssueCommonality

Contains common functionality shared between Issues and MergeRequests

### Public Instance Methods

is_assigned?() click to toggle source

    # File app/roles/issue_commonality.rb, line 50
    def is_assigned?
      !!assignee_id
    end

is_being_closed?() click to toggle source

    # File app/roles/issue_commonality.rb, line 58
    def is_being_closed?
      closed_changed? && closed
    end

is_being_reassigned?() click to toggle source

    # File app/roles/issue_commonality.rb, line 54
    def is_being_reassigned?
      assignee_id_changed?
    end

is_being_reopened?() click to toggle source

    # File app/roles/issue_commonality.rb, line 62
    def is_being_reopened?
      closed_changed? && !closed
    end

new?() click to toggle source

    # File app/roles/issue_commonality.rb, line 46
    def new?
      today? && created_at == updated_at
    end

today?() click to toggle source

    # File app/roles/issue_commonality.rb, line 42
    def today?
      Date.today == created_at.to_date
    end