バージョン 3.0.4 では、構文エラーによりアセットの事前コンパイルが壊れているようです。アセットを事前コンパイルしようとすると、次のエラーが発生します。
RAILS_ENV=production SKIP_DB_AND_REDIS=1 DONT_PRECOMPILE_CSS=1 bundle exec rake --trace assets:precompile
rake aborted!
SyntaxError: /opt/bitnami/discourse/lib/file_store/base_store.rb:96: syntax error, unexpected ','
download(*, **, print_deprecation: false)
^
/opt/bitnami/discourse/lib/file_store/base_store.rb:102: syntax error, unexpected ','
download(*, **, print_deprecation: false)
この コードの部分で、アスタリスクを通常の文字列に置き換えると正しく動作します。
# TODO: Remove when #download becomes the canonical safe version.
def download_safe(arg1, arg2)
download(arg1, arg2, print_deprecation: false)
rescue StandardError
nil
end