Maintenance: Resolved rubocop Style/AccessModifierDeclarations violations.

This commit is contained in:
Thorsten Eckel 2020-10-05 16:26:25 +02:00
parent 9269385acd
commit 93550ad494
3 changed files with 9 additions and 3 deletions

View file

@ -1,6 +1,9 @@
# Copyright (C) 2012-2016 Zammad Foundation, http://zammad-foundation.org/
module ExtraCollection
module_function
def session( collections, assets, user )
# all base stuff
@ -45,5 +48,4 @@ module ExtraCollection
[collections, assets]
end
module_function :session # rubocop:disable Style/AccessModifierDeclarations
end

View file

@ -1,6 +1,9 @@
# Copyright (C) 2012-2016 Zammad Foundation, http://zammad-foundation.org/
module ExtraCollection
module_function
def session( collections, assets, user )
return [collections, assets] if !user
@ -15,5 +18,4 @@ module ExtraCollection
[collections, assets]
end
module_function :session # rubocop:disable Style/AccessModifierDeclarations
end

View file

@ -1,6 +1,9 @@
# Copyright (C) 2012-2016 Zammad Foundation, http://zammad-foundation.org/
module ExtraCollection
module_function
def session( collections, assets, user )
# all ticket stuff
@ -47,5 +50,4 @@ module ExtraCollection
end
[collections, assets]
end
module_function :session # rubocop:disable Style/AccessModifierDeclarations
end