Moved back to compact module/class declaration.
This commit is contained in:
parent
19d2b9750c
commit
70f3bb5dd4
5 changed files with 170 additions and 179 deletions
|
@ -1,7 +1,6 @@
|
|||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class ApplicationModel
|
||||
module ActivityStreamBase
|
||||
# rubocop:disable ClassAndModuleChildren
|
||||
module ApplicationModel::ActivityStreamBase
|
||||
|
||||
=begin
|
||||
|
||||
|
@ -42,5 +41,4 @@ returns
|
|||
created_by_id: user_id,
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class ApplicationModel
|
||||
module Assets
|
||||
# rubocop:disable ClassAndModuleChildren
|
||||
module ApplicationModel::Assets
|
||||
|
||||
=begin
|
||||
|
||||
|
@ -40,5 +39,4 @@ returns
|
|||
}
|
||||
data
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# perform background job
|
||||
class ApplicationModel
|
||||
class BackgroundJobSearchIndex
|
||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||
# rubocop:disable ClassAndModuleChildren
|
||||
class ApplicationModel::BackgroundJobSearchIndex
|
||||
def initialize(object, o_id)
|
||||
@object = object
|
||||
@o_id = o_id
|
||||
|
@ -9,5 +9,4 @@ class ApplicationModel
|
|||
def perform
|
||||
Object.const_get(@object).find(@o_id).search_index_update_backend
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class ApplicationModel
|
||||
module HistoryLogBase
|
||||
# rubocop:disable ClassAndModuleChildren
|
||||
module ApplicationModel::HistoryLogBase
|
||||
|
||||
=begin
|
||||
|
||||
|
@ -97,5 +96,4 @@ returns
|
|||
assets: history[:assets],
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class ApplicationModel
|
||||
module SearchIndexBase
|
||||
# rubocop:disable ClassAndModuleChildren
|
||||
module ApplicationModel::SearchIndexBase
|
||||
|
||||
=begin
|
||||
|
||||
|
@ -142,5 +141,4 @@ returns
|
|||
}
|
||||
attributes_new.merge(attributes)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue