Commit 37c4b1d5 authored by o's avatar o

grammar fix

parent 816a3861
Pipeline #4826 failed with stages
in 9 minutes and 48 seconds
......@@ -98,20 +98,20 @@ class ApplicationController < ActionController::Base
end
helper_method :resource_enabled?
def any_resources_enabled?
def any_resource_enabled?
!(session[:possible_resources]||{}).empty?
end
helper_method :any_resources_enabled?
helper_method :any_resource_enabled?
def resource_exists?(resource)
(session[:existing_resources]||{})[resource].present?
end
helper_method :resource_exists?
def any_resources_exist?
def any_resource_exist?
!(session[:existing_resources]||[]).empty?
end
helper_method :any_resources_exist?
helper_method :any_resource_exist?
def list_of_canonical_resources
# TODO: move to api
......
......@@ -19,7 +19,7 @@
pgpkeys: {},
invites: ({} if allow_invites?),
delete_account: {},
services: ({divider: true} if any_resources_enabled? || any_resource_exists?),
services: ({divider: true} if (any_resource_enabled? || any_resource_exists?)),
new_resource: ({} if feature_toggle?('resource')),
}.merge(
list_of_canonical_resources.map do |name|
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment