DEV: Update rubocop-discourse to latest version

The lastest version of rubocop-discourse enables rules regarding
plugins.
This commit is contained in:
Loïc Guitaut
2024-02-01 17:28:10 +01:00
committed by Loïc Guitaut
parent 7a6ba47e7b
commit f7d7092a7a
27 changed files with 169 additions and 118 deletions

View File

@ -19,7 +19,7 @@ after_initialize do
POST_CUSTOM_FIELD ||= "local_dates".freeze
end
%w[../lib/discourse_local_dates/engine.rb].each { |path| load File.expand_path(path, __FILE__) }
require_relative "lib/discourse_local_dates/engine"
register_post_custom_field_type(DiscourseLocalDates::POST_CUSTOM_FIELD, :json)