diff --git a/lib/sessions/backend/collections/base.rb b/lib/sessions/backend/collections/base.rb index 3dee887e2..012054574 100644 --- a/lib/sessions/backend/collections/base.rb +++ b/lib/sessions/backend/collections/base.rb @@ -96,14 +96,14 @@ class Sessions::Backend::Collections::Base @model = model end - def self.roles_add(role) + def self.add_if_role(role) if !@roles @roles = [] end @roles.push role end - def self.not_roles_add(role) + def self.add_if_not_role(role) if !@not_roles @not_roles = [] end diff --git a/lib/sessions/backend/collections/email_address.rb b/lib/sessions/backend/collections/email_address.rb index ddb6ec00e..092919e14 100644 --- a/lib/sessions/backend/collections/email_address.rb +++ b/lib/sessions/backend/collections/email_address.rb @@ -1,4 +1,4 @@ class Sessions::Backend::Collections::EmailAddress < Sessions::Backend::Collections::Base model_set 'EmailAddress' - not_roles_add 'Customer' + add_if_not_role 'Customer' end diff --git a/lib/sessions/backend/collections/signature.rb b/lib/sessions/backend/collections/signature.rb index ef000d200..e244c6a55 100644 --- a/lib/sessions/backend/collections/signature.rb +++ b/lib/sessions/backend/collections/signature.rb @@ -1,4 +1,4 @@ class Sessions::Backend::Collections::Signature < Sessions::Backend::Collections::Base model_set 'Signature' - not_roles_add 'Customer' + add_if_not_role 'Customer' end