Class: ProjectSuggestion

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/project_suggestion.rb

Instance Method Summary collapse

Instance Method Details

#done?Boolean

Returns:

  • (Boolean)

7
8
9
# File 'app/models/project_suggestion.rb', line 7

def done?
  !pending
end

#pendingObject


11
12
13
14
15
# File 'app/models/project_suggestion.rb', line 11

def pending
  (repository_url.present? && repository_url != project.try(:repository_url)) ||
  (licenses.present? && licenses != project.try(:licenses)) ||
  (status.present? && status != project.try(:status))
end