From 9966d9a68a29d8e11ac0c44a6ecc8f1f4df71204 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Fri, 4 Oct 2019 09:32:58 +0200 Subject: [PATCH] linting: hash syntax --- app/models/ability.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/ability.rb b/app/models/ability.rb index 954876d68..2b70f4055 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -19,11 +19,11 @@ def initialize(user) elsif user.role_id == "staff_user" can :read, :all elsif user.role_id == "provider_admin" && user.provider_id.present? - can [:update, :read, :read_billing_information], Provider, :symbol => user.provider_id.upcase - can [:manage], Provider, :consortium_id => user.provider_id + can [:update, :read, :read_billing_information], Provider, symbol: user.provider_id.upcase + can [:manage], Provider, consortium_id: user.provider_id can [:read], Provider - can [:manage], ProviderPrefix, :provider_id => user.provider_id - can [:manage], Client,:provider_id => user.provider_id + can [:manage], ProviderPrefix, provider_id: user.provider_id + can [:manage], Client, provider_id: user.provider_id can [:manage], ClientPrefix #, :client_id => user.provider_id # if Flipper[:delete_doi].enabled?(user)