Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/helpers/icons_helper.rb')
-rw-r--r--lib/helpers/icons_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helpers/icons_helper.rb b/lib/helpers/icons_helper.rb
index 9920e4f5..5c8410cc 100644
--- a/lib/helpers/icons_helper.rb
+++ b/lib/helpers/icons_helper.rb
@@ -12,7 +12,7 @@ module Nanoc::Helpers
%[<div class="d-none">#{read_file(sprite_path)}</div>]
end
- def sprite_icon(icon_name, size, css_class)
+ def icon(icon_name, size = nil, css_class = nil)
unless known_sprites.include?(icon_name)
exception = ArgumentError.new("#{icon_name} is not a known icon in @gitlab-org/gitlab-svg")
raise exception