discourse/plugins/discourse-narrative-bot/lib/discourse_narrative_bot
Alan Guo Xiang Tan 3491642f98
DEV: Make discourse_narrative_bot use Rails autoload (#26044)
Why this change?

Instead of manually loading files, we should just structure the plugin
so that it relies on Rails autoload strategy and avoid all the manual
`require_relative`s.

What does this change do?

1. Structure the plugin to use Rails autoloading convention
2. Remove onceff jobs that were added 5-6 years ago. There is no need to
   carry these jobs anymore after such a long time.
3. Move setting of `SiteSetting.discourse_narrative_bot_enabled` to
   `false` in the test environment from core into the plugin.
2024-03-06 11:14:53 +08:00
..
templates DEV: Remove xlink hrefs (#15059) 2021-11-25 15:22:43 +11:00
actions.rb DEV: Enable unless cops 2023-02-21 10:30:48 +01:00
advanced_user_narrative.rb DEV: Move core plugin TL -> group settings (#25355) 2024-01-23 11:35:14 +10:00
base.rb DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
certificate_generator.rb DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
dice.rb DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
engine.rb DEV: Make discourse_narrative_bot use Rails autoload (#26044) 2024-03-06 11:14:53 +08:00
magic_8_ball.rb DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
new_user_narrative.rb DEV: Move min_trust_to_post_embedded_media to group setting (#25238) 2024-01-25 09:50:59 +10:00
post_guardian_extension.rb DEV: Update rubocop-discourse to latest version 2024-03-04 15:08:35 +01:00
quote_generator.rb DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
store.rb DEV: Make discourse_narrative_bot use Rails autoload (#26044) 2024-03-06 11:14:53 +08:00
track_selector.rb DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
welcome_post_type_site_setting.rb DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00