diff --git a/app/controllers/apps_controller.rb b/app/controllers/apps_controller.rb index 2a1f5b9..abdc458 100644 --- a/app/controllers/apps_controller.rb +++ b/app/controllers/apps_controller.rb @@ -12,7 +12,7 @@ class AppsController < ApplicationController } expose(:apps) { - app_scope.all.sort + app_scope.all.sort.to_a } expose(:app, :ancestor => :app_scope) @@ -143,4 +143,3 @@ class AppsController < ApplicationController end end end - diff --git a/app/helpers/apps_helper.rb b/app/helpers/apps_helper.rb index c4aaed1..886311c 100644 --- a/app/helpers/apps_helper.rb +++ b/app/helpers/apps_helper.rb @@ -12,27 +12,27 @@ module AppsHelper end def any_github_repos? - detect_any_apps_with_attributes unless @any_github_repos + detect_any_apps_with_attributes if @any_github_repos.nil? @any_github_repos end def any_notification_services? - detect_any_apps_with_attributes unless @any_notification_services + detect_any_apps_with_attributes if @any_notification_services.present? @any_notification_services end def any_bitbucket_repos? - detect_any_apps_with_attributes unless @any_bitbucket_repos + detect_any_apps_with_attributes if @any_bitbucket_repos.nil? @any_bitbucket_repos end def any_issue_trackers? - detect_any_apps_with_attributes unless @any_issue_trackers + detect_any_apps_with_attributes if @any_issue_trackers.nil? @any_issue_trackers end def any_deploys? - detect_any_apps_with_attributes unless @any_deploys + detect_any_apps_with_attributes if @any_deploys.nil? @any_deploys end @@ -50,4 +50,3 @@ module AppsHelper end end end - -- libgit2 0.21.2