diff options
Diffstat (limited to 'lib/gitlab/template/base_template.rb')
-rw-r--r-- | lib/gitlab/template/base_template.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/template/base_template.rb b/lib/gitlab/template/base_template.rb index 31e11f73fe7..ededc3db18e 100644 --- a/lib/gitlab/template/base_template.rb +++ b/lib/gitlab/template/base_template.rb @@ -47,6 +47,8 @@ module Gitlab { key: key, name: name, content: content } end + alias_method :as_json, :to_json + def <=>(other) name <=> other.name end |