From 4e807587be4dc53cc28a46dbfc6f39b2b320cb64 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Thu, 7 May 2015 14:47:13 +0200 Subject: [PATCH] Corrected with rubocop cop 'Style/ModuleFunction'. --- .rubocop.yml | 2 -- app/models/ticket/number/date.rb | 2 +- app/models/ticket/number/increment.rb | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) 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