mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-08 19:35:11 +01:00
16 lines
397 B
Ruby
16 lines
397 B
Ruby
# frozen_string_literal: true
|
|
|
|
return unless defined?(Rails::Command::StatsCommand)
|
|
|
|
[
|
|
%w(AppLibs app/lib),
|
|
%w(Policies app/policies),
|
|
%w(Presenters app/presenters),
|
|
%w(Serializers app/serializers),
|
|
%w(Services app/services),
|
|
%w(Validators app/validators),
|
|
%w(Workers app/workers),
|
|
].each do |name, directory|
|
|
Rails::CodeStatistics.register_directory(name.titleize, directory)
|
|
end
|