class PluginDecorator < Draper::Decorator
  delegate_all

  def status
    if installed?
      I18n.t("terms.installed")
    elsif processing?
      I18n.t("terms.processing")
    else
      I18n.t("terms.not_installed")
    end
  end
end

class PluginDecorator < Draper::Decorator
  delegate_all

  def status
    if processing?
      I18n.t("terms.processing")
    elsif installed?
      I18n.t("terms.installed")
    else
      I18n.t("terms.not_installed")
    end
  end
end

Change the priority of checking status because both installed and not installed plugins could be processing.
Change the priority of checking status because both installed and not installed plugins could be processing.
