- Renamed Sessions::Backend::Collections method roles_add to add_if_role.

- Renamed Sessions::Backend::Collections method not_roles_add to add_if_not_role.
This commit is contained in:
Thorsten Eckel 2015-05-08 11:37:14 +02:00
parent 5b352c93e8
commit f3a9fdb8b3
3 changed files with 4 additions and 4 deletions

View file

@ -96,14 +96,14 @@ class Sessions::Backend::Collections::Base
@model = model @model = model
end end
def self.roles_add(role) def self.add_if_role(role)
if !@roles if !@roles
@roles = [] @roles = []
end end
@roles.push role @roles.push role
end end
def self.not_roles_add(role) def self.add_if_not_role(role)
if !@not_roles if !@not_roles
@not_roles = [] @not_roles = []
end end

View file

@ -1,4 +1,4 @@
class Sessions::Backend::Collections::EmailAddress < Sessions::Backend::Collections::Base class Sessions::Backend::Collections::EmailAddress < Sessions::Backend::Collections::Base
model_set 'EmailAddress' model_set 'EmailAddress'
not_roles_add 'Customer' add_if_not_role 'Customer'
end end

View file

@ -1,4 +1,4 @@
class Sessions::Backend::Collections::Signature < Sessions::Backend::Collections::Base class Sessions::Backend::Collections::Signature < Sessions::Backend::Collections::Base
model_set 'Signature' model_set 'Signature'
not_roles_add 'Customer' add_if_not_role 'Customer'
end end