Moved back to compact module/class definition to prevent "superclass mismatch for class Ticket (TypeError)".
This commit is contained in:
parent
95e27b0994
commit
ba1d7abf91
22 changed files with 1119 additions and 1173 deletions
|
@ -1,7 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class Ticket
|
module Ticket::ActivityStreamLog
|
||||||
module ActivityStreamLog
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
|
@ -36,5 +35,4 @@ returns
|
||||||
created_by_id: user_id,
|
created_by_id: user_id,
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class Ticket
|
class Ticket::Article < ApplicationModel
|
||||||
class Article < ApplicationModel
|
|
||||||
load 'ticket/article/assets.rb'
|
load 'ticket/article/assets.rb'
|
||||||
include Ticket::Article::Assets
|
include Ticket::Article::Assets
|
||||||
load 'ticket/article/history_log.rb'
|
load 'ticket/article/history_log.rb'
|
||||||
|
@ -48,5 +47,4 @@ class Ticket
|
||||||
validates :name, presence: true
|
validates :name, presence: true
|
||||||
latest_change_support
|
latest_change_support
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class Ticket
|
module Ticket::Article::ActivityStreamLog
|
||||||
class Article
|
|
||||||
module ActivityStreamLog
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
|
@ -38,6 +36,4 @@ returns
|
||||||
created_by_id: user_id,
|
created_by_id: user_id,
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
|
||||||
class Ticket
|
module Ticket::Article::Assets
|
||||||
class Article
|
|
||||||
module Assets
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
|
@ -52,6 +50,4 @@ returns
|
||||||
}
|
}
|
||||||
data
|
data
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
|
||||||
class Ticket
|
module Ticket::Article::HistoryLog
|
||||||
class Article
|
|
||||||
module HistoryLog
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
|
@ -29,6 +27,4 @@ returns
|
||||||
data[:created_by_id] = user_id
|
data[:created_by_id] = user_id
|
||||||
History.add(data)
|
History.add(data)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class Ticket
|
module Ticket::Assets
|
||||||
module Assets
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
|
@ -39,5 +38,4 @@ returns
|
||||||
}
|
}
|
||||||
data
|
data
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class Ticket
|
class Ticket::Counter < ApplicationModel
|
||||||
class Counter < ApplicationModel
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class Ticket
|
module Ticket::Escalation
|
||||||
module Escalation
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
|
@ -321,5 +320,4 @@ returns
|
||||||
return check_time if escalation_time > check_time
|
return check_time if escalation_time > check_time
|
||||||
escalation_time
|
escalation_time
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
|
||||||
class Ticket
|
class Ticket::Flag < ApplicationModel
|
||||||
class Flag < ApplicationModel
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class Ticket
|
module Ticket::HistoryLog
|
||||||
module HistoryLog
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
|
@ -78,5 +77,4 @@ returns
|
||||||
assets: assets,
|
assets: assets,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
|
||||||
class Ticket
|
class Ticket::Number
|
||||||
class Number
|
|
||||||
include ApplicationLib
|
include ApplicationLib
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
@ -56,5 +55,4 @@ returns
|
||||||
end
|
end
|
||||||
adapter
|
adapter
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class Ticket
|
module Ticket::Number::Date
|
||||||
class Number
|
|
||||||
module Date
|
|
||||||
extend self
|
extend self
|
||||||
|
|
||||||
def generate
|
def generate
|
||||||
|
@ -83,6 +81,4 @@ class Ticket
|
||||||
end
|
end
|
||||||
ticket
|
ticket
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
|
||||||
class Ticket
|
module Ticket::Number::Increment
|
||||||
class Number
|
|
||||||
module Increment
|
|
||||||
extend self
|
extend self
|
||||||
|
|
||||||
def generate
|
def generate
|
||||||
|
@ -86,6 +84,4 @@ class Ticket
|
||||||
end
|
end
|
||||||
ticket
|
ticket
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class Ticket
|
module Ticket::Overviews
|
||||||
module Overviews
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
|
@ -249,5 +248,4 @@ returns
|
||||||
bind[0] = sql
|
bind[0] = sql
|
||||||
bind
|
bind
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class Ticket
|
module Ticket::Permission
|
||||||
module Permission
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
|
@ -44,5 +43,4 @@ returns
|
||||||
}
|
}
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class Ticket
|
class Ticket::Priority < ApplicationModel
|
||||||
class Priority < ApplicationModel
|
|
||||||
self.table_name = 'ticket_priorities'
|
self.table_name = 'ticket_priorities'
|
||||||
validates :name, presence: true
|
validates :name, presence: true
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class Ticket
|
module Ticket::ScreenOptions
|
||||||
module ScreenOptions
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
|
@ -174,5 +173,4 @@ returns
|
||||||
assets: assets,
|
assets: assets,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class Ticket
|
module Ticket::Search
|
||||||
module Search
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
|
@ -143,5 +142,4 @@ returns
|
||||||
}
|
}
|
||||||
tickets
|
tickets
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class Ticket
|
module Ticket::SearchIndex
|
||||||
module SearchIndex
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
|
@ -106,5 +105,4 @@ returns
|
||||||
return if !attributes
|
return if !attributes
|
||||||
SearchIndexBackend.add(self.class.to_s, attributes)
|
SearchIndexBackend.add(self.class.to_s, attributes)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class Ticket
|
class Ticket::State < ApplicationModel
|
||||||
class State < ApplicationModel
|
|
||||||
belongs_to :state_type, class_name: 'Ticket::StateType'
|
belongs_to :state_type, class_name: 'Ticket::StateType'
|
||||||
validates :name, presence: true
|
validates :name, presence: true
|
||||||
|
|
||||||
|
@ -51,5 +50,4 @@ returns:
|
||||||
return true if ignore_escalation.include?( self.name )
|
return true if ignore_escalation.include?( self.name )
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class Ticket
|
class Ticket::StateType < ApplicationModel
|
||||||
class StateType < ApplicationModel
|
|
||||||
has_many :states, class_name: 'Ticket::State'
|
has_many :states, class_name: 'Ticket::State'
|
||||||
validates :name, presence: true
|
validates :name, presence: true
|
||||||
latest_change_support
|
latest_change_support
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class Ticket
|
module Ticket::Subject
|
||||||
module Subject
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
|
@ -76,5 +75,4 @@ returns
|
||||||
|
|
||||||
subject
|
subject
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue