DEV: Fix build (#30600)
The `faker` gem, which is a dependency for the `*:populate` rake tasks, isn't installed in the production environment, so we should only load files/classes related to those rake tasks in non-production environments.
This commit is contained in:
parent
5202532acb
commit
7df1fac68b
|
@ -513,7 +513,9 @@ after_initialize do
|
|||
# removed. Depending on the channel, uploads may end up being secure.
|
||||
UploadSecurity.register_custom_public_type("chat-composer")
|
||||
|
||||
DiscoursePluginRegistry.discourse_dev_populate_reviewable_types.add DiscourseDev::ReviewableMessage
|
||||
if Rails.env.local?
|
||||
DiscoursePluginRegistry.discourse_dev_populate_reviewable_types.add DiscourseDev::ReviewableMessage
|
||||
end
|
||||
end
|
||||
|
||||
if Rails.env == "test"
|
||||
|
|
Loading…
Reference in New Issue