Skip to content
Snippets Groups Projects
Commit 2d72efcd authored by Robert Speicher's avatar Robert Speicher
Browse files

Add `count` to Themes and ColorSchemes

parent 6d43308b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -32,6 +32,11 @@ module Gitlab
SCHEMES.detect { |s| s.id == id } || default
end
 
# Returns the number of defined Schemes
def self.count
SCHEMES.size
end
# Get the default Scheme
#
# Returns a Scheme
Loading
Loading
Loading
Loading
@@ -37,6 +37,11 @@ module Gitlab
THEMES.detect { |t| t.id == id } || default
end
 
# Returns the number of defined Themes
def self.count
THEMES.size
end
# Get the default Theme
#
# Returns a Theme
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment