let Zeitwerk handle the requiring of data export use cases
This commit is contained in:
parent
2a9111de61
commit
6e30bc73cf
|
@ -4,19 +4,22 @@ require "fileutils"
|
||||||
require "securerandom"
|
require "securerandom"
|
||||||
require "zip/filesystem"
|
require "zip/filesystem"
|
||||||
|
|
||||||
require "use_case/data_export/answers"
|
# require all data export use cases via Zeitwerk
|
||||||
require "use_case/data_export/appendables"
|
# rubocop:disable Lint/Void
|
||||||
require "use_case/data_export/comments"
|
UseCase::DataExport::Answers
|
||||||
require "use_case/data_export/mute_rules"
|
UseCase::DataExport::Appendables
|
||||||
require "use_case/data_export/questions"
|
UseCase::DataExport::Comments
|
||||||
require "use_case/data_export/relationships"
|
UseCase::DataExport::MuteRules
|
||||||
require "use_case/data_export/theme"
|
UseCase::DataExport::Questions
|
||||||
require "use_case/data_export/user"
|
UseCase::DataExport::Relationships
|
||||||
|
UseCase::DataExport::Theme
|
||||||
|
UseCase::DataExport::User
|
||||||
|
# rubocop:enable all
|
||||||
|
|
||||||
# the justask data exporter, now with 200% less shelling out to system tools!
|
# the justask data exporter, now with 200% less shelling out to system tools!
|
||||||
#
|
#
|
||||||
# the data export can be easily extended by subclassing `UseCase::DataExport::Base`
|
# the data export can be easily extended by subclassing `UseCase::DataExport::Base`
|
||||||
# and `require`ing it above
|
# and letting Zeitwerk know about the subclasses above
|
||||||
class Exporter
|
class Exporter
|
||||||
def initialize(user)
|
def initialize(user)
|
||||||
@user = user
|
@user = user
|
||||||
|
|
Loading…
Reference in New Issue