471ab2347f
Since Puma 5.0 (puma/puma@05936689c8), Puma will automatically set `workers` to `ENV["WEB_CONCURRENCY"] || 0`. Additionally, if `ENV["WEB_CONCURRENCY"]` > 1, Puma will automatically set `preload_app`. This can lead to confusing scenarios for users who are unaware of this behavior and have customized `config/puma.rb`. For example, if a user uncomments the `workers` and `preload_app!` directives, it is clear that Puma will preload the app, and the number of workers can be configured by setting `ENV["WEB_CONCURRENCY"]`. If the user sets `ENV["WEB_CONCURRENCY"]` > 1, but then changes their mind and removes the `workers` or `preload_app!` directives *without* clearing `ENV["WEB_CONCURRENCY"]`, Puma will still preload the app and launch `ENV["WEB_CONCURRENCY"]` number of workers. Similarly, if a user uncomments *only* the `workers` directive and sets `ENV["WEB_CONCURRENCY"]` > 1, Puma will preload the app even though the `preload_app!` directive is still commented out. To avoid such scenarios, this commit removes the commented-out `workers` and `preload_app!` directives from the default `config/puma.rb`. Also, to improve discoverability of available configuration options, this commit adds a link to the Puma DSL documentation at the top of the file. |
||
---|---|---|
.. | ||
app | ||
bin | ||
db/migrate | ||
lib | ||
test | ||
.gitignore | ||
actiontext.gemspec | ||
CHANGELOG.md | ||
MIT-LICENSE | ||
package.json | ||
Rakefile | ||
README.md | ||
rollup.config.js |
Action Text
Action Text brings rich text content and editing to Rails. It includes the Trix editor that handles everything from formatting to links to quotes to lists to embedded images and galleries. The rich text content generated by the Trix editor is saved in its own RichText model that's associated with any existing Active Record model in the application. Any embedded images (or other attachments) are automatically stored using Active Storage and associated with the included RichText model.
You can read more about Action Text in the Action Text Overview guide.
Development
The JavaScript for Action Text is distributed both as a npm module under @rails/actiontext and via the asset pipeline as actiontext.js (and we mirror Trix as trix.js). To ensure that the latter remains in sync, you must run yarn build
and checkin the artifacts whenever the JavaScript source or the Trix dependency is bumped. CSS changes must be brought over manually to app/assets/stylesheets/trix.css
License
Action Text is released under the MIT License.