From 0e6a068c7b22b9b074efa5684de9f804d58a5468 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Mon, 7 Dec 2015 15:20:58 -0300 Subject: [PATCH] should not return a theme twice --- app/controllers/themes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/themes_controller.rb b/app/controllers/themes_controller.rb index 7973b47..1904002 100644 --- a/app/controllers/themes_controller.rb +++ b/app/controllers/themes_controller.rb @@ -13,7 +13,7 @@ class ThemesController < ApplicationController def index @environment = environment - @themes = (environment.themes + Theme.approved_themes(target)).sort_by { |t| t.name } + @themes = (environment.themes + Theme.approved_themes(target)).uniq.sort_by { |t| t.name } @current_theme = target.theme -- libgit2 0.21.2