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/
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class ApplicationModel
|
module ApplicationModel::ActivityStreamBase
|
||||||
module ActivityStreamBase
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
|
@ -42,5 +41,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 ApplicationModel
|
module ApplicationModel::Assets
|
||||||
module Assets
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
|
@ -40,5 +39,4 @@ returns
|
||||||
}
|
}
|
||||||
data
|
data
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# perform background job
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
class ApplicationModel
|
# rubocop:disable ClassAndModuleChildren
|
||||||
class BackgroundJobSearchIndex
|
class ApplicationModel::BackgroundJobSearchIndex
|
||||||
def initialize(object, o_id)
|
def initialize(object, o_id)
|
||||||
@object = object
|
@object = object
|
||||||
@o_id = o_id
|
@o_id = o_id
|
||||||
|
@ -9,5 +9,4 @@ class ApplicationModel
|
||||||
def perform
|
def perform
|
||||||
Object.const_get(@object).find(@o_id).search_index_update_backend
|
Object.const_get(@object).find(@o_id).search_index_update_backend
|
||||||
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 ApplicationModel
|
module ApplicationModel::HistoryLogBase
|
||||||
module HistoryLogBase
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
|
@ -97,5 +96,4 @@ returns
|
||||||
assets: history[:assets],
|
assets: history[: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 ApplicationModel
|
module ApplicationModel::SearchIndexBase
|
||||||
module SearchIndexBase
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
|
@ -142,5 +141,4 @@ returns
|
||||||
}
|
}
|
||||||
attributes_new.merge(attributes)
|
attributes_new.merge(attributes)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue