Corrected with rubocop cop 'Style/AccessorMethodName'.
This commit is contained in:
parent
4b4c7386a2
commit
bae19fd9d7
2 changed files with 7 additions and 7 deletions
|
@ -93,7 +93,7 @@ class ImportOtrsController < ApplicationController
|
|||
def import_status
|
||||
return if setup_done_response
|
||||
|
||||
state = Import::OTRS2.get_current_state
|
||||
state = Import::OTRS2.current_state
|
||||
|
||||
render json: {
|
||||
data: state,
|
||||
|
|
|
@ -212,9 +212,9 @@ module Import::OTRS2
|
|||
|
||||
=begin
|
||||
|
||||
get object statisitic from server ans save it in cache
|
||||
get object statistic from server ans save it in cache
|
||||
|
||||
result = get_statisitic('Subaction=List')
|
||||
result = statistic('Subaction=List')
|
||||
|
||||
return
|
||||
|
||||
|
@ -226,7 +226,7 @@ module Import::OTRS2
|
|||
|
||||
=end
|
||||
|
||||
def self.get_statisitic
|
||||
def self.statistic
|
||||
|
||||
# check cache
|
||||
cache = Cache.get('import_otrs_stats')
|
||||
|
@ -246,7 +246,7 @@ module Import::OTRS2
|
|||
|
||||
return current import state
|
||||
|
||||
result = get_current_state
|
||||
result = current_state
|
||||
|
||||
return
|
||||
|
||||
|
@ -263,8 +263,8 @@ module Import::OTRS2
|
|||
|
||||
=end
|
||||
|
||||
def self.get_current_state
|
||||
data = self.get_statisitic
|
||||
def self.current_state
|
||||
data = self.statistic
|
||||
base = Group.count + Ticket::State.count + Ticket::Priority.count
|
||||
base_total = data['Queue'] + data['State'] + data['Priority']
|
||||
user = User.count
|
||||
|
|
Loading…
Reference in a new issue