discourse-follow/lib/follow/engine.rb
Alan Guo Xiang Tan 51e5345f53
DEV: Add lib to autoload path (#130)
Why manually require files when we can autoload? Also update
`discourse-rubocop` and resolve new lint violations.
2024-11-15 07:13:13 +08:00

9 lines
203 B
Ruby

# frozen_string_literal: true
module ::Follow
class Engine < ::Rails::Engine
engine_name "follow"
isolate_namespace Follow
config.autoload_paths << File.join(config.root, "lib")
end
end