diff --git a/.rubocop.yml b/.rubocop.yml index 06d4fee3e..7d3996c96 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -212,5 +212,3 @@ Lint/UnreachableCode: Enabled: false Lint/ShadowingOuterLocalVariable: Enabled: false -Style/ModuleFunction: - Enabled: false diff --git a/app/models/ticket/number/date.rb b/app/models/ticket/number/date.rb index 400fcf6e8..d86dfa83d 100644 --- a/app/models/ticket/number/date.rb +++ b/app/models/ticket/number/date.rb @@ -1,7 +1,7 @@ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # rubocop:disable ClassAndModuleChildren module Ticket::Number::Date - extend self + module_function def generate diff --git a/app/models/ticket/number/increment.rb b/app/models/ticket/number/increment.rb index 6f3234b19..6827ade2f 100644 --- a/app/models/ticket/number/increment.rb +++ b/app/models/ticket/number/increment.rb @@ -1,7 +1,7 @@ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ module Ticket::Number::Increment - extend self + module_function def generate