Skip to content

Commit

Permalink
Core - make :reporting and :properties categories global
Browse files Browse the repository at this point in the history
Before 3.0 each plugin defined their own note category, this doesn't
work well, because if you first export to PDF and then to HTML, you have
to change all the categories.

Now plugins will use Category.reporting and Category.property to find
the right notes.
  • Loading branch information
etdsoft committed Aug 5, 2014
1 parent d14ed17 commit 94a24fe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions engines/core/app/models/dradis/core/category.rb
Expand Up @@ -27,6 +27,14 @@ def self.issue
find_or_create_by(name: 'Issue description')
end

def self.properties
find_or_create_by(name: 'Project properties')
end

def self.report
find_or_create_by(name: 'Report category')
end

# -- Instance Methods -----------------------------------------------------

private
Expand Down

0 comments on commit 94a24fe

Please sign in to comment.