Commit Graph

8166 Commits

Author SHA1 Message Date
Jonathan Hefner
9ac01c6a81 Use relative URLs for intra-guide links [ci-skip]
This ensures that the URLs are properly versioned when the guides are
rendered.
2022-08-05 21:36:18 -05:00
Jonathan Hefner
2efb17dd9c Use versioned URLs for specific guide versions [ci-skip]
This ensures that the reader will get the information intended at the
time of linking.  This also prevents dead links in the case that the
link targets are removed from future versions of the guides.
2022-08-05 21:36:18 -05:00
Jonathan Hefner
a713f7f22f Fix typos [ci-skip] 2022-08-05 21:36:18 -05:00
Eileen M. Uchitelle
914ac17156
Merge pull request #45539 from geongeorge/feature/updates-guide-generation-epub
Feature/updates guide generation - EPUB
2022-08-04 15:03:56 -04:00
Geon George
56e96d9344 Replaces mobi guide with epub for docs because of discontinued support
Removes kindlerb logic

Adds template for epub generator

Renames the kindle dir to /epub

Adds epub module to generator and replaces kindle

Fixes mimetype

Creates basic epub book

Deletes old kindle module

Adds zip package

Updates rubyzip gem name

Removes now unused gepub gem

Adds the required container file for epubs

Fixes media type

Adds new epub generation logic

Removes all buttons from output html

Refactors and generates valid epub files

Removes frontmatter logic used for kindlegen

Filters out epub files in zip

Updates link to kindle doc on sidebar

Fixes rubocop issues

Adds deprecation warning for the old kindle task

Refactors and cleans up epub module

Cleans up epub code

Cleans up private internal method code style

Removes unnecessary imagemagick check
2022-08-05 00:18:20 +05:30
Alex Ghiculescu
bd0fdc8094 Add drop_enum command for Postgres 2022-08-03 18:50:43 -05:00
Patrick Barattin
8821574186 Add missing Versioning header in maintenance policy guide 2022-08-03 13:32:59 +02:00
Joel Hawksley
b7908a62f9 Rename 'Explicit Locals to Strict Locals`
Per https://github.com/rails/rails/pull/45602#discussion_r934981516
2022-08-01 17:23:47 -06:00
Joel Hawksley
bbe7d19e11 Allow templates to define which locals they accept. 2022-08-01 15:42:02 -06:00
Stan Lo
fdc988bdd1
Remove resolved debugger caveat (#45704) 2022-07-31 02:27:28 +05:30
Xavier Noria
2b3245ddc1 Document where custom autoloading inflections should go 2022-07-30 13:56:39 +02:00
Bhaskar Shankarling
8ae17b2afc fixed the delete comment guide and added missing unless statement 2022-07-29 16:35:12 +05:30
Xavier Noria
b712fc9247
Merge pull request #45581 from cantin/autoloading_guide_update
Update autoloading guide for inflection in the once autoloader
2022-07-28 10:45:08 +02:00
Sam Bostock
bc1f323338
Add ActiveJob::Serializers::BigDecimalSerializer
Previously, BigDecimal was listed as not needing a serializer.  However,
when used with an adapter storing the job arguments as JSON, it would get
serialized as a simple String, resulting in deserialization also producing
a String (instead of a BigDecimal).

By using a serializer, we ensure the round trip is safe.

During upgrade deployments of applications with multiple replicas making use of
BigDecimal job arguments with a queue adapter serializing to JSON, there exists
a possible race condition, whereby a "new" replica enqueues a job with an
argument serialized using `BigDecimalSerializer`, and an "old" replica fails to
deserialize it (as it does not have `BigDecimalSerializer`).

Therefore, to ensure safe upgrades, serialization will not use
`BigDecimalSerializer` until `config.active_job.use_big_decimal_serializer` is
enabled, which can be done safely after successful deployment of Rails 7.1.

This option will be removed in Rails 7.2, when it will become the default.
2022-07-19 15:31:41 -04:00
Richard Böhme
acf767dbd6 Allow to use pre-defined variants for previews
Previously, named variants could only be used when calling the
`variant` method on an attachment. For files that are not `variable?`
but `previewable?` those pre-defined variants could not be used.

With this patch, the methods `preview` and `representation` also allow
to be passed a variation name as a symbol.

    class User < ActiveRecord::Base
      has_one_attached :file do |attachable|
        attachable.variant :thumb, resize_to_limit: [100, 100]
      end
    end

    <%= image_tag user.file.representation(:thumb) %>
2022-07-19 16:59:52 +02:00
Jonathan Hefner
bc0f07b93c
Merge pull request #45617 from ajporterfield/add-beginless-range-example-to-ar-querying-guide
Add endless range example to the Active Record Querying guide [ci-skip]
2022-07-18 11:11:44 -05:00
Andrew Porterfield
504887cff5 Add endless range example to the Active Record Querying guide 2022-07-18 10:43:03 -04:00
Yuta Uchida
a16c7c722e
Added default values to raise_delivery_errors guide (#45616) 2022-07-18 19:42:46 +05:30
matt swanson
959d46ef87
Add quarter method to date/time (#45009)
Co-authored-by: David Heinemeier Hansson <david@hey.com>
2022-07-14 16:43:52 -07:00
Étienne Barrié
c2b96e3e89 Allow Symbols by default in YAML serialized columns
In Ruby 3.1, YAML.load also defaults to allowing Symbols even it's using
safe_load.

https://docs.ruby-lang.org/en/3.1/Psych.html#method-c-load
2022-07-13 13:27:19 +02:00
Cantin Xu
08180a92a3 Update autoloading guide for inflection in the once autoloader 2022-07-13 11:19:08 +08:00
Rafael Mendonça França
6e2e8c0d0f
Move configuration to the right section
And fix configuration name.

Both configs are for Active Record, not Active Storage.
2022-07-12 20:42:53 +00:00
Zack Deveau
611990f1a6
Change ActiveRecord::Coders::YAMLColumn default to safe_load
In Psych >= 4.0.0, load defaults to safe_load. This commit
makes the ActiveRecord::Coders::YAMLColum class use Psych safe_load
as the Rails default.

This default is configurable via ActiveRecord.use_yaml_unsafe_load

We conditionally fallback to the correct unsafe load if use_yaml_unsafe_load
is set to true. unsafe_load was introduced in Psych 4.0.0

The list of safe_load permitted classes is configurable via
ActiveRecord.yaml_column_permitted_classes

[CVE-2022-32224]
2022-07-12 09:26:46 -07:00
Diego Michel
eeb14214fd Fixes rubydoc links
Uses gem version of documentation instead of repo version

Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>
2022-07-11 12:58:12 -06:00
Petrik de Heus
81d6012f4f
Merge pull request #45538 from hexdevs/custom-validator-loaded-note
Clarify how `EachValidator` is automatically loaded [ci-skip]
2022-07-10 10:46:36 +02:00
Stefanni Brasil
ecbca0cb1e Make Custom Validators example more clear
The Active Record Validations guide use `Person < ApplicationRecord`
in all examples. When reading about Custom Validators, one of the
examples had a different configuration. By using the same example
everywhere, this change helps the user save time and feel more confident
using the feature.
2022-07-09 17:56:51 -07:00
Alexandre Barret
0dd813c6da Add documentation to customize full_messages on ActiveModel and ActiveRecord
Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>
2022-07-07 13:28:56 -05:00
Jonathan Hefner
0e77c83189
Merge pull request #45511 from ajporterfield/migration-index-update
Update migration near bottom of Active Record Basic guide [ci-skip]
2022-07-06 11:11:13 -05:00
Andrew Porterfield
d0f07d7abd Update index in migration at bottom of Active Record Basic guide 2022-07-05 17:06:14 -04:00
Hartley McGuire
0348b219cf
Remove docs for legacy_connection_handling
The config was fully removed in ad52c0a but this was missed
2022-07-03 20:12:03 -04:00
fatkodima
64ad045e47 Support multiple preview paths for mailers 2022-06-30 15:09:59 +03:00
Rafael Mendonça França
4755259a65
Merge pull request #45385 from skipkayhil/refine-configuring-docs-2
Add docs for all Application::Configuration attr [ci skip]
2022-06-29 18:07:27 -04:00
Svyatoslav Kryukov
080f9b4c98
Document Action Cable Connection Callbacks 2022-06-28 15:36:52 +03:00
Svyatoslav Kryukov
b66df44f1f
Document Action Cable Channel Callbacks 2022-06-27 10:34:48 +03:00
Jorge Manrubia
193e155e4b
Fix: incorrect value regarding overhead and encryption 2022-06-27 07:30:22 +02:00
Jonathan Hefner
1c804dcd12
Merge pull request #45436 from jonathanhefner/guides-unify-ltr-rtl-css
Unify LTR / RTL CSS for guides
2022-06-25 11:17:10 -05:00
Jonathan Hefner
2d49c1cdd2
Merge pull request #45449 from jonathanhefner/allow_deprecated_singular_associations_name-config-guide
Improve `allow_deprecated_singular_associations_name` config doc [ci-skip]
2022-06-25 10:35:33 -05:00
Jorge Manrubia
a8171d16eb Document concerns about storage and column size when using encryption 2022-06-24 13:00:49 -07:00
Jonathan Hefner
3f58a562c5 Merge pull request #45454 from skipkayhil/docs-rm-removed-urlsafe-config
Removed docs for removed urlsafe_csrf_token config [ci-skip]
2022-06-24 11:29:02 -05:00
Jonathan Hefner
ebadb541a5
Merge pull request #45457 from jean-francois-labbe/main
turbolinks:load to turbo:load in ActionCable guide [ci-skip]
2022-06-24 10:43:43 -05:00
Eileen M. Uchitelle
d51b171849
Merge pull request #45324 from adrianna-chang-shopify/ac-migration-strategy-objects
Introduce "Execution Strategy" object for Migrations
2022-06-24 07:37:03 -04:00
jean-francois labbe
34916855ca turbolinks:load to turbo:load in ActionCable guide 2022-06-24 10:57:30 +02:00
Hartley McGuire
bd0aae70a4
Removed docs for removed urlsafe_csrf_token config
The config was deprecated in c4d9dac and removed in 4f12bcd but the
documentation for it was missed
2022-06-23 19:38:50 -04:00
Jonathan Hefner
c47974a946 Improve allow_deprecated_singular_associations_name config doc [ci-skip]
Follow-up to #45344.

This tweaks the description, fleshes out the code example, and fixes the
default value listed for 7.1.
2022-06-23 14:11:33 -05:00
Adrianna Chang
6673d8ef3b Delegate migration methods to strategy object
The default strategy will continue to forward messages to the connection adapter,
but applications can configure a custom strategy class to use instead.
2022-06-23 09:14:02 -04:00
willnet
90b3f696c4
Fix wrong sample code about allow_deprecated_singular_associations_name [skip ci]
The only time #45163 and #45344 have an effect is when the hash value passed to `where` is a model object. The current sample code does not change behavior between Rails 7.0 and 7.1
2022-06-23 17:10:21 +09:00
Jonathan Hefner
23d0cd6f6f Unify LTR / RTL CSS for guides
When `main.css` is updated, it is easy for `main.rtl.css` to be
overlooked (see #45423).

This commit eliminates `main.rtl.css` in favor of a unified approach to
LTR / RTL styling in `main.css`.  To accomplish this, the `<body>`
element is rendered with a [`dir` attribute][] (which has the same
effect as setting the CSS `direction` property), and LTR- / RTL-specific
styles are prefixed with `:where(body[dir="..."])` selectors.  (The
[`:where()` pseudo-class][] ensures that selector specificity is not
changed.)

This change also paves the way for automatic detection and application
of LTR / RTL styles when the [`:dir()` pseudo-class][] gains widespread
browser support.

[`dir` attribute]: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir
[`:where()` pseudo-class]: https://developer.mozilla.org/en-US/docs/Web/CSS/:where
[`:dir()` pseudo-class]: https://developer.mozilla.org/en-US/docs/Web/CSS/:dir
2022-06-22 16:42:48 -05:00
Hartley McGuire
02449bf8bf
Fix guides rtl css out of sync with ltr
A few changes were made to main.css that didn't make it to
main.rtl.css:

- f6bcd14
- 9695943
- 674d952
- 5443c96
2022-06-21 17:56:53 -04:00
Jonathan Hefner
949a5e4c28
Merge pull request #45395 from skipkayhil/rm-ar-store-special
Remove special handling for ActiveRecordStore
2022-06-20 14:06:29 -05:00
Hartley McGuire
27285e7881
Remove special handling for ActiveRecordStore
activerecord-session_store was removed in 0ffe190, and has been
displaying a special error message when missing since Rails 4.0.

Replace the specific error message so that third party stores get nicer
error handling as well
2022-06-20 00:35:36 -04:00
Jonathan Hefner
9a7d4420d3
Merge pull request #45391 from siaw23/debugging_errata
Fix minor errata on debugging section [ci-skip]
2022-06-18 12:13:13 -05:00
Emmanuel Hayford
d578002b91 Fix minor errata on debugging section [ci-skip] 2022-06-18 19:01:05 +02:00
Deepak Mahakale
7f73db7366 docs: Fix breaking code block 2022-06-18 11:13:42 +05:30
Jonathan Hefner
54d866b000
Merge pull request #45375 from philippneugebauer/main
add repo link for scaffold templates to docs [ci-skip]
2022-06-17 12:50:51 -05:00
Victor Hiairrassary
e16de199ae
Fix string interpolation in testing guide 2022-06-17 19:38:57 +02:00
Brad Purchase
c7f596b110 Specify that rails-dev-box will not work with any Apple silicon Mac
Using Apple silicon instead of M1 since there are several Apple silicon chips now
2022-06-17 14:34:00 +00:00
Philipp Neugebauer
455d1cecf2 add repo link for scaffold templates to docs and slightly rephrase docs
Update guides/source/generators.md

Co-authored-by: Hartley McGuire <skipkayhil@gmail.com>

Update guides/source/generators.md

Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>
2022-06-17 10:16:24 +02:00
Hartley McGuire
db0f2a48a4
Add docs for all Application::Configuration attr
Previously, there was a small amount of grouping of related config
options. However, the lack of an ordered list made options feel less
discoverable than when they are sorted.

In addition, filled in descriptions for a number of config options that
were missing.
2022-06-16 22:02:17 -04:00
Hartley McGuire
e377e02104
Order rails general configuration alphabetically
Previously there seems to be a mix of alphabetical ordering with some
grouping around related options. This makes the discoverability of
options much easier when scrolling through the list.
2022-06-16 20:05:13 -04:00
Jonathan Hefner
fa7a904d4c
Merge pull request #45376 from siaw23/concise_version_note
Use suggested version of note [ci-skip]
2022-06-16 11:37:38 -05:00
HParker
3a04c7b339 Add configurable deprecation warning for singular associations
This removes the singularize from `where` which runs on all `expand_from_hash` keys which might be reflections or column names. This saves a lot of time by avoiding singularizing column names.

Previously in https://github.com/rails/rails/pull/45163 the singularize was removed entirely. after some reflection, I think it is better to at least give a warning for one release since `where` is a very popular API and the problems you can run into with incorrect relation could be hard to debug.

Configurable with `ActiveRecord::Base.allow_deprecated_singular_assocaitions_name = false` / `config.active_record.allow_deprecated_singular_assocaitions_name = false`
2022-06-16 09:14:12 -07:00
Emmanuel Hayford
d2050b2adc Use suggested version of note [ci-skip]
my_app seems to be what Rails docs use mostly. Changed it for some
consistency
2022-06-16 01:36:35 +02:00
Petrik de Heus
06c116fe1a
Merge pull request #45359 from p8/guides/update-command-line-db-option
Update Command Line guide --database usage [ci-skip]
2022-06-15 07:48:25 +02:00
fatkodima
21a6dbd313 Enable strict strings mode for SQLite3Adapter
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
2022-06-14 23:59:17 +03:00
Petrik
e5a06ecefe Update Command Line guide --database usage [ci-skip]
The current Command Line guide has an advanced section describing
specifying git as SCM and PostgreSQL as the database. This section is
easily overlooked: https://github.com/rails/rails/issues/44325

By moving whole "advanced" section under the `rails new` section, it's
easier to find. Also specifying the database is pretty common I guess
and not an "advanced" topic.

All mentions of the SCM option have been removed, as it seems to no
longer be an option and we always initialize with Git only.
2022-06-14 22:18:31 +02:00
Cameron Bothner
936a862f3c
Run transactional callbacks on instances most likely to match DB state 2022-06-14 13:34:25 -04:00
Jonathan Hefner
4a55631119
Merge pull request #45329 from siaw23/add_notes_to_quit
Add notes on how to exit the debugger [ci-skip]
2022-06-14 11:12:53 -05:00
Jonathan Hefner
0adc2347d9
Merge pull request #45332 from siaw23/api_doc_guidelines_improvement
Improve API Documentation Guidelines [ci-skip]
2022-06-14 10:58:47 -05:00
Eileen M. Uchitelle
9817c94fb4
Merge pull request #45277 from p8/guides/fix-guide-dropdown-on-home
Show Guides Index as selected for `/` on small screens [ci-skip]
2022-06-14 10:36:50 -04:00
Emmanuel Hayford
14e8939e28 Add notes on how to exit the debugger [ci-skip] 2022-06-14 00:20:14 +02:00
Emmanuel Hayford
0809dd3fca Improve API Documentation Guidelines [ci-skip] 2022-06-14 00:12:18 +02:00
Jonathan Hefner
bb680b9a92
Merge pull request #45333 from skipkayhil/refine-configuring-docs
Make secret_key_base doc more explicit [ci skip]
2022-06-13 16:36:54 -05:00
Hartley McGuire
7953c8670b
Make secret_key_base doc more explicit
This used to be `config.secret_key_base` but was changed to
`secrets.secret_key_base` in ae75289 and the `secrets.` prefix was
removed in ca18922 when credentials were added.

`secret_key_base` by itself doesn't really fit with the rest of this
section, so the header and description were changed to document the
config value explicitly, and a reference was added to the api docs for
the recommended approaches at setting its value.

Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>
2022-06-13 17:21:27 -04:00
Emmanuel Hayford
a3ffa9b908 Add info and fix command description [ci-skip] 2022-06-13 21:11:17 +02:00
Guillermo Iguaran
0ed32cd2a4
Merge pull request #45249 from andreynering/guides-activemodel-errors
Guides > Upgrading: Mention `ActiveModel::Errors` on Rails 6.1
2022-06-08 15:53:12 -07:00
Alex Ghiculescu
6a4a4bd114 Add a note about connection pooling by default to the Upgrade Guide
https://github.com/rails/rails/pull/45235 is a new default, and while it is a better default I think it is still worth alerting users to it. If we aren't adding a new config for it then I think we should note it in the upgrade guide so it doesn't get lost in the changelog.
2022-06-08 12:15:36 -05:00
Yasuo Honda
ee5345437f
Merge pull request #45279 from se2342/patch-1
Reflect PostgreSQL UUID functionality part of core since v13.0
2022-06-07 23:16:50 +09:00
Sebastian
bef575c66f Reflect PostgreSQL UUID functionality part of core since v13.0
This change to the guides reflects that the PostgreSQL function used to generate UUIDs `gen_random_uuid ()` is part of PostgreSQL core beginning with version 13.0.

No special extensions are needed for users who want to use UUIDs with PostgreSQL equal or greater version 13.0.

See https://www.postgresql.org/docs/current/functions-uuid.html and https://www.postgresql.org/docs/release/13.0/ (look for `gen_random_uuid()` in release notes) for further reference.
2022-06-07 15:40:06 +02:00
fatkodima
799b5c1df4 Enable connection pooling by default for MemCacheStore and RedisCacheStore 2022-06-07 11:40:17 +03:00
Petrik de Heus
d3ac49bca4
Merge pull request #45278 from samkpower/rails-js-docs [ci-skip]
Add installation instructions for importmap-rails
2022-06-06 19:30:39 +02:00
Petrik de Heus
c9c2f9d716
Merge pull request #45276 from ghiculescu/counter-variables-docs [ci-skip]
Docs: clarify where counter variables start
2022-06-06 19:09:53 +02:00
Petrik
d844f24f73 Show Guides Index as selected for / on small screens [ci-skip]
On small screens the guides index is shown as a select dropdown.
The Guides Index option has the value 'index.html'.
When visiting `https://guides.rubyonrails.org/` this option won't be
selected as the pathname doesn't include index.html.

Javascript treats empty strings as falsey, so for the root path we can
return `index.html` instead of a empty string.
2022-06-06 19:05:51 +02:00
Sam Power
6a674db689 Add installation instructions for importmap-rails 2022-06-06 12:52:08 -04:00
Alex Ghiculescu
5a069ae262 Docs: clarify where counter variables start
The way the guide is written now, it's not clear if the first counter value will be `0` or `1`, so I made it explicit that it's `0`.

Co-authored-by: Petrik de Heus <petrik@deheus.net>
2022-06-06 11:37:32 -05:00
Ivanov-Anton
cd8edf19a6 docs: incorrect output from the parameterized method usage example 2022-06-06 18:07:46 +03:00
Andrey Nering
371da7e83a Guides > Upgrading: Mention ActiveModel::Errors on Rails 6.1 2022-06-06 10:40:57 -03:00
Wilfried OLLIVIER
0f2a97f6ca Move rails new doc into a new header 2022-06-04 17:08:51 +02:00
Oleg Sklyarov
c487372c4b
replace 303 status code with see_other 2022-06-04 16:10:39 +03:00
Hartley McGuire
ce17492101
Fix FreeBSD development dependencies
- installing packages requires sudo
- imagemagick package was not found, corrected with imagemagick6
  (eventually we may want imagemagick7 but this is consistent with
  stable releases on other distros for now)

Co-authored-by: Yasuo Honda <yasuo.honda@gmail.com>
2022-06-02 19:03:49 -04:00
Hartley McGuire
410bc52fa5
Add poppler to Dev Dependency guide [ci skip]
Package listings:

debian/apt - https://packages.ubuntu.com/jammy/poppler-utils
fedora     - https://packages.fedoraproject.org/pkgs/poppler/poppler-utils/
arch linux - https://archlinux.org/packages/extra/x86_64/poppler/
freebsd    - https://www.freshports.org/graphics/poppler-utils

Also updated the Active Storage dependency list because Poppler is
required on any platform to run tests.
2022-06-01 21:30:39 -04:00
Andrey Nering
f8b09fec5e Guides > Upgrading: Mention config.hosts on Rails 6.0 2022-05-30 14:56:25 -03:00
Jonathan Hefner
3fd0f848bd
Merge pull request #45204 from Ivanov-Anton/change-example-of-sql
removed redundant backtick symbol from sql examples of rails guides [ci-skip]
2022-05-29 09:36:38 -05:00
Ivanov-Anton
a3f1482080 removed redundant backtick symbol from sql examples of rails guides 2022-05-29 16:43:29 +03:00
chimpanstache
fd399d2022
small error in first example of pluck section 2022-05-29 14:37:44 +02:00
Gannon McGibbon
01f58d62c2
Merge pull request #45180 from gmcgibbon/deprecate_behaviour_constant
Deprecate behaviour constant
2022-05-27 09:06:54 -04:00
cjilbert504
4908a5a31f Update form_helpers.md section 1
The edits in section 1.2.1 of this guide are being proposed as the value argument passed to `check_box` is not in the second position, it is the third argument as shown [here](https://api.rubyonrails.org/v7.0.3/classes/ActionView/Helpers/FormBuilder.html#method-i-check_box) and in turn the language around the argument list for `radio_button` in section 1.2.2 needed to be altered as well.
Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>
2022-05-26 18:00:18 -05:00
Gannon McGibbon
3dad2919d5 Rename behaviour to behavior in documentation 2022-05-26 17:14:18 -04:00
Cameron Dutro
59ead5343a Add additional content exfiltration prevention to form tags 2022-05-23 17:46:37 +00:00
Alex Ghiculescu
d3c9e91c83
[docs] Change wording around mailing list in contribution guide
https://discuss.rubyonrails.org/c/rubyonrails-core/5 doesn't look like a mailing list, and so the suggestion to "send an email" to it is a bit confusing if you've never seen it before.
2022-05-23 10:08:16 -05:00
Gustavo Ribeiro
bcf56af0c1
Fix typo: some thing -> something 2022-05-22 14:28:53 -03:00
Jean Boussier
26bbb0c10c
Merge pull request #44916 from ghiculescu/image-bmp
Treat `image/bmp` as a valid content type
2022-05-21 15:18:22 -07:00
Yudai Takada
4e557b6c6d
Fix typo in document (#45148) 2022-05-21 17:44:29 -04:00
Jean Boussier
ad409d5c3a
Merge pull request #44888 from berniechiu/rotate-default-log-files
Rotate Default Logs on Each 100MB
2022-05-20 11:52:05 -07:00
Petrik de Heus
2d336c00d7
Merge pull request #45120 from p8/guides/expand-security-headers-guide
Expand HTTP Security Headers in guides [ci-skip]
2022-05-20 20:25:30 +02:00
Vipul A M
d36c84b42c Add header fixes[ci skip] 2022-05-20 11:14:14 -07:00
Tim Aßmann
ca96df2549
add section for host header attack prevention in rails security guide (#43330)
* add section for host header attack prevention in rails security guide

* Fix wrong rails setting key for HostAuthorization middleware

The original documention was wrong, the rails configuration key is called host_authorization.

* add a short intro on how dns rebinding attacks work

* Apply suggestions from code review

Co-authored-by: Rafael Mendonça França <rafael@franca.dev>

Co-authored-by: Rafael Mendonça França <rafael@franca.dev>
2022-05-20 23:42:41 +05:30
Eike Send
63ba5ab88d
Adds Deferrable Foreign Keys section to Active Record and PostgreSQL guide (#43812) 2022-05-20 23:41:15 +05:30
Sam Ruby
ab76b7e50a
add header for devcontainers, this serves two purposes: [ci-skip] (#45129)
* add header for devcontainers, this serves two purposes:

 * Despite what was previously implied, it indeed *is* possible to use
   local devcontainers even if you are a member of an organization that
    has codespaces enabled
 * More importantly, adding a separate heading makes the option more
   likely to be found by people who are *not* a member of an organization
   that has codespaces enabled and therefore skip over to the next
   bullet based on the heading.

* Update guides/source/contributing_to_ruby_on_rails.md

Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>

* Update guides/source/contributing_to_ruby_on_rails.md

Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>

Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>
2022-05-20 23:37:14 +05:30
Bernie Chiu
cdce275f70
Rotate default logs on each 100MB 2022-05-20 16:42:17 +08:00
Jonathan Hefner
9574a39a7a Add db_runtime to Active Job instrumentation
This adds `:db_runtime` to `perform.active_job` notification payloads,
which is the total time taken by database queries while performing a
job.  This value can be used to better understand how a job's time is
spent.

This is similar to the `:db_runtime` value added to
`process_action.action_controller` notification payloads by
`ActiveRecord::Railties::ControllerRuntime`.

Closes #35354.

Co-authored-by: Cory Gwin <gwincr11@github.com>
2022-05-19 14:09:21 -05:00
Petrik
b9d3108420 Improve prefixing routes example in guides [ci-skip]
The current example is ambiguous as it uses 'admin' for both the scope
and `:as` option.
This change clarifies the example by explaining what `scope` does and
what the `:as` option does.

Co-authored-by: Hartley McGuire <skipkayhil@gmail.com>
2022-05-18 22:42:03 +02:00
fatkodima
059d1d16ab Deprecate :pool_size and :pool_timeout options for configuring connection pooling in cache stores 2022-05-18 00:10:04 +03:00
Petrik
274b1f2900 Expand HTTP Security Headers in guides [ci-skip]
Adds more details to several HTTP security headers.

The X-Content-Security-Policy header was removed from the list of common
headers as it already has its own section.
The Strict-Transport-Security header was moved from the list of common
headers to its own section.
The Referrer-Policy and X-Permitted-Cross-Domain-Policies headers were
added to the list as they are part of the defaults.

Changed the example for configuring the default headers to overriding
single headers instead of all headers. This could help avoid
unsetting headers by accident.
2022-05-17 22:18:31 +02:00
Cremesis
0a7749818e
Update working_with_javascript_in_rails.md 2022-05-12 10:12:22 +02:00
Petrik de Heus
4b5410a6aa
Merge pull request #44897 from claasz/patch-1
Clarified requirements for keys in nested structures
2022-05-11 19:49:03 +02:00
Claas Z
1cee625569
Update guides/source/form_helpers.md
Co-authored-by: Petrik de Heus <petrik@deheus.net>
2022-05-11 16:48:34 +02:00
Petrik
51dd7f01c4 Rename Guides "Contributions" section to "Contributing" [ci-skip]
The Contributions section in the guides doesn't document "contributions
to Rails" but "how to Contribute to Rails".
2022-05-11 11:28:26 +02:00
Petrik
55073ac10f Use the CSS badge for the API docs as well
Sdoc 2.4.0 supports a CSS badge that can be set by passing the version
as the HORO_BADGE_VERSION env variable.

The old badge image can be removed, as it no longer needs to be copied
by the docs server: https://github.com/rails/rails-docs-server/pull/28
2022-05-10 21:05:59 +02:00
Petrik de Heus
068c783adb
Merge pull request #44965 from equivalent/patch-2
AzureStorage needs version >= 2 of azure-storage-blob
2022-05-09 13:13:05 +02:00
Mikhail Dieterle
a80a225085
Fix a typo in Active Record Encryption guide 2022-05-09 13:14:02 +03:00
Hartley McGuire
05a6176474
Fix typo in development dependencies (#45042) 2022-05-08 17:49:06 -04:00
Jason Karns
1d5bddc082 Fix link to Thor's docs
Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>
2022-05-08 10:24:49 -05:00
tmyksj
57dcca2ab8 Reformat code in Placeholder Conditions
This commit inserts spaces inside curly brackets in Placeholder
Conditions to follow the coding conventions.
2022-05-06 20:13:46 +09:00
JohnAnon9771o
5d86ff86c8 fix: name of attribute of name to first_name in dynamic finders doc 2022-05-03 17:23:26 -03:00
Chunwai Li
de12c18a99 Emphasize cacheable objects in guide and API docs
Clarify to users what objects may be cached, and highlight the option used to cache default non-serializable data.

Purpose: Improving new-to-Rails users' experience, as this detail may not be obvious, costing them time and effort spent debugging.

Co-authored-by: Hartley McGuire <skipkayhil@gmail.com>
Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>
2022-05-02 15:15:59 -05:00
Petrik de Heus
fd8067d877
Merge pull request #44992 from SkipKayhil/add-vips-to-dev-dep-guide
Add libvips to Development Dependency guide [ci skip]
2022-05-02 14:37:13 +02:00
Masataka Pocke Kuwabara
c7c18299b3 Put Active Record changes into place in 7.0 release notes [ci-skip] 2022-05-02 16:13:31 +09:00
Hartley McGuire
1dfd03593a
Add libvips to Development Dependency guide
Package listings:

macos/brew - https://formulae.brew.sh/formula/vips
debian/apt - https://packages.ubuntu.com/jammy/libvips42
fedora     - https://packages.fedoraproject.org/pkgs/vips/vips/
arch linux - https://archlinux.org/packages/community/x86_64/libvips/
freebsd    - https://cgit.freebsd.org/ports/tree/graphics/vips
2022-05-01 03:07:21 -04:00
Luca Ongaro
f8974286da
Improve upgrade guide section on cookies rotator (#44967)
* Improve upgrade guide section on cookies rotator

The Rails upgrade guide, in the section about upgrading from Rails 6.1 to Rails 7.0, contains some example code defining a cookie rotator for encrypted cookies, as Rails 7 changed the default digest for the key generator from `SHA1` to `SHA256`. The problem is that the provided example code only rotates encrypted cookies, and not signed ones. Rotating signed cookies is also usually necessary for the same reason, and failure to do so results in old cookies not being read. For example, when using the popular Rails authentication framework [Devise](https://github.com/heartcombo/devise) with the `rememberable` strategy, the "remember me" token is saved as a signed cookie, and without defining a rotator all users would be logged out following an upgrade to Rails 7.

This change improves the example code in the documentation by also rotating signed cookies. Note that providing an example is important, because rotating the signed cookies involves some technicality that is not obvious to users who are not comfortable with reading the [relevant Rails internal code](649516ce0f/actionpack/lib/action_dispatch/middleware/cookies.rb (L615)) (a different salt is used for signed cookies, and the `key_len` argument is omitted when generating the secret).

The improved example code should hopefully save some mistakes for users following the upgrade guide.

* Apply suggestions from code review

Better naming for the signed cookie salt variable

Co-authored-by: Vipul A M <vipul@hey.com>

* Apply suggestions from code review

Better naming also for the authenticated encrypted cookie salt variable

Co-authored-by: Vipul A M <vipul@hey.com>

Co-authored-by: Vipul A M <vipul@hey.com>
2022-04-27 18:50:59 +05:30
Tomas Valent
d099162f96
AzureStorage needs version >= 2 of azure-storage-blob
`active_storage_service`  needs version `"~> 2.0"`  of `azure-storage-blob`   because version 1.1.0 of the gem doesn't support Ruby > 2.5 0920b02c1d

Credit for this  goes to   @SkipKayhil  for spotting  this  in issue I raised https://github.com/rails/rails/issues/44960
2022-04-26 21:24:05 +02:00
Jonathan Hefner
bc9fa030a6
Merge pull request #44928 from gumatias/patch-1
Add missing info for `change` column and table comment in Guides [ci-skip]
2022-04-21 19:02:23 -05:00
Gustavo Matias dos Santos
e2ffa66256 Add info for change column and table comment
This will ensure the guide is aligned with the doc on some things that I believe it's useful. Some folks do go for the guides more of than the api for a quick reference.

Order alphabetically

Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>

Add change colum and table comment links for reference in guide

Update  working so we know this list may keep changing
2022-04-21 15:40:37 -07:00
Junichi Sato
5c89dc3eb9
Syntax highlight ruby code in multi db guide (#44929) 2022-04-21 20:01:38 +05:30
Alex Ghiculescu
a22bb8fa69 Treat image/bmp as a valid content type
This is a follow up to https://github.com/rails/rails/pull/42227#issuecomment-1100927828

The mime types database was incorrect regarding `image/bmp`. It has been fixed in https://github.com/mime-types/mime-types-data/issues/48 and in https://github.com/discourse/mini_mime/pull/45

Since a new version of `mini_mime` hasn't been cut yet, some of the tests in this PR look a bit off. But the core issue of not warning users if they use `image/bmp` is resolved.
2022-04-19 08:08:16 +10:00
Jonathan Hefner
8ace32c4cc
Merge pull request #44911 from pocke/Remove_unnecessary_note_for_primary_key_in_the_guide
Remove unnecessary note for primary_key in the guide [ci-skip]
2022-04-18 10:08:15 -05:00
Masataka Pocke Kuwabara
c280c5d4d9 [guide] Enable syntax highlight for a code in AR validation guide 2022-04-18 23:28:03 +09:00
Masataka Pocke Kuwabara
70a0754e5d Remove unnecessary note for primary_key in the guide 2022-04-18 10:57:33 +09:00
Xavier Noria
cbfe735c69 Deprecate config.enable_dependency_loading 2022-04-14 22:31:26 +02:00
Xavier Noria
2953ae5c8a Define config.enable_reloading to be !config.cache_classes
Every time I write `config.cache_classes` I have to pause for a moment to make
sure I get it right. It makes you think.

On the other hand, if you read `config.enable_reloading = true`, does the
application reload? You do not need to spend 1 cycle of brain CPU to nod.
2022-04-14 18:11:36 +02:00
Claas Z
def782dfeb
Clarified requirements for keys in nested structures 2022-04-14 17:50:05 +02:00
Jonathan Hefner
51b4370bb3
Merge pull request #44871 from timchaston/fix-broken-link-for-redis-pub-sub-in-action-cable-overview
Fix broken link for Redis PubSub in 'Action Cable Overview' guide [ci-skip]
2022-04-13 09:44:44 -05:00
Jeremiah
9af580d50e Remove activerecord namespace from example, since it no longer returns the value shown below 2022-04-11 17:41:44 -05:00
Tim Chaston
65946d7eb5 Update URL for Redis Pub/Sub documentation. Change text of link to Redis Pub/Sub documenation to include a slash, to reflect the title on that page. 2022-04-12 06:35:41 +10:00
Jonathan Hefner
98b8b0dd70
Merge pull request #44862 from jackscotti/patch-1
Update source of `secret_key_base` in cookie rotator example [ci-skip]
2022-04-11 09:36:27 -05:00
Shane Boyer
ef291097fc
fix: correct config.host_authorization reference
The Middleware `ActionDispatch::HostAuthorization` configuration documentation references `config.host_configuration`.  Correct this to `config.host_authorization` to match the source code documentation in `action_dispatch/middleware/host_authorization.rb`.
2022-04-11 00:31:27 -04:00
Jack Scotti
4d8e5f8269
Update source of secret_key_base in cookie rotator example
`secrets.secret_key_base` can be one of the many different places where `secret_key_base` is set and therefore it might not work with your application.
Updating the docs to use `Rails.application.secret_key_base` fixes the issue.

Rails `secret_key_base` - [docs](https://api.rubyonrails.org/classes/Rails/Application.html#method-i-secret_key_base)
2022-04-08 17:01:57 +01:00
Viktor Schmidt
22ca875f9c
Add docs about how to use remote browser in test (#44311)
* Add docs about how to use remote browser in test

* Update guides/source/testing.md

Co-authored-by: Lewis Buckley <lewis@lewisbuckley.co.uk>

Co-authored-by: Lewis Buckley <lewis@lewisbuckley.co.uk>
2022-04-06 01:14:41 +05:30
Vipul A M
f3e176c23b
Merge pull request #44574 from NobodysNightmare/fix-activestorage-cdn-example
Fix the example for using a CDN with ActiveStorage
2022-04-05 15:39:22 -04:00
Petrik de Heus
f1c079951d
Merge pull request #44783 from p8/guides/move-validates-associated
Group `validates_associated` guide with `validates_*` [ci-skip]
2022-04-05 21:38:33 +02:00
Petrik de Heus
b5d3301823
Merge pull request #44830 from SkipKayhil/docs-nonce-generator
Document ETag compatible CSP nonce generator [ci skip]
2022-04-05 21:34:40 +02:00
Hartley McGuire
f5cf908122
Document ETag compatible CSP nonce generator
The content_security_policy initializer template was updated in 40b25fd
to suggest a method compatible with conditional GET requests by default,
so this updates the security documentation to describe the difference
between the original value and the "etag compatible" value and when
they should be used.
2022-04-04 23:59:16 -04:00
Aaron Patterson
cfa7284789
Merge pull request #44826 from stefkin/acp-eql-flag
Add a flag to disable deprecated AC::Parameters comparison
2022-04-04 09:09:44 -07:00
eileencodes
ad52c0a197
Remove legacy_connection_handling
This functionality has been deprecated since Rails 6.1 and can now be
removed. I've deleted all code, docs, references, and tests related to
this feature.
2022-04-04 09:36:13 -04:00
Seva Stefkin
67762c2407
Add a flag to disable deprecated AC::Parameters comparison 2022-04-04 10:08:05 +02:00
Xavier Noria
ee907fc38e Document a use case for autoloading in after_initialize 2022-04-01 10:12:13 +02:00
Ghouse Mohamed
9c74d14471 Highlight booleans which are set to config in docs 2022-03-30 03:00:17 +05:30
John Bampton
3b7f55c179 Change yaml to YAML 2022-03-29 15:19:22 +10:00
Petrik
1d08fce0ef Group validates_associated documentation with validates_* [ci-skip]
`validates_associated` makes sure that passed associations are validated
everytime the record is saved. This is unlike other validations that
validate an attribute/association has a certain value.
Typically you won't call:

    validates :books, associated: true

By grouping `validates_associated` with `validates_with` and
`validates_each` it's made clearer `validates_associated` is a bit
different.

With this change the validations are sorted alphabetically.
2022-03-28 20:29:00 +02:00
Gannon McGibbon
d38ed8bf0d
Merge pull request #44781 from ghousemohamed/added-missing-session-store-to-docs
Added missing `config.session_store` option `:cache_store` to docs [ci-skip]
2022-03-28 14:22:24 -04:00
Ghouse Mohamed
f5a79cc197 Added missing config.session_store option to docs 2022-03-28 19:17:16 +05:30
John Bampton
d6f47017ad Fix spelling
Change `there're` to `there are`

`there're` is not in the dictionary and we use `there are` in many places

https://www.dictionary.com/misspelling?term=there%27re
2022-03-27 05:19:40 +10:00
eileencodes
10314c1c84
Update local development guide
* Remove outdated information
* Clean up language and sentence structure to be clearer
* Remove commands that are no longer necessary
* Add note about how to move past the native extension issues with
  mysql2 since it's become a big problem.
2022-03-24 17:29:07 -04:00
Eileen M. Uchitelle
145d86fb37
Merge pull request #44764 from ghousemohamed/highlight-shard-selector-in-docs
Highlight `ShardSelector` class mentioned in the docs [ci-skip]
2022-03-24 12:21:15 -04:00
Ghouse Mohamed
9b2513f219 Highlight ShardSelector class mentioned in the docs 2022-03-24 21:37:24 +05:30
Jonathan Hefner
ad25dfad87
Merge pull request #44727 from tmyksj/description-about-sql-like-sanitization
docs: Add a description about SQL LIKE sanitization [ci-skip]
2022-03-23 17:49:15 -05:00
tmyksj
4dc71e2880 Add a description about LIKE conditions
Condition arguments are escaped to prevent SQL injection, SQL LIKE
wildcards (i.e., `%` and `_`) are not escaped. But there are no
description about SQL LIKE escape in the rails querying guide. So,
this adds a description about SQL LIKE escape to the guide.
2022-03-24 07:32:26 +09:00
Xavier Noria
4103a4a028 Adds a section about the undocumented before_remove_const in the Classic to Zeitwerk HOWTO 2022-03-20 23:05:19 +01:00
Xavier Noria
d28cb5d8d9 Restores some colons for correct grammar 2022-03-20 17:44:34 +01:00
Eileen M. Uchitelle
b589d519a6
Merge pull request #44706 from rails/update-contributing-docs
Modernize contributing docs
2022-03-17 08:26:30 -04:00
eileencodes
4b3910aa32
Modernize contributing docs
I read through these and found that some of the advice was old and/or
outdated. This change takes a pass at improving the contributing guide.
I'll tackle the local development process next.

In my changes I aimed to:

* Remove outdated information about how to do something (for example
  backports should be done with `cherry-pick`, not `.patch` files).
* Rewrite the easiest, easy, and hard way to better explain each version
  rather than refer to them as easy/hard. I also recommend against the
  rails-dev-box for M1's.
* Remove any language that is flippant or dismissive of contribution
  efforts to better.
* Recommend more modern tools and documentation where appropriate.
2022-03-16 14:53:02 -04:00
Alex Ghiculescu
ceeee1d30b
Clarify where t works for _html suffixes
Since https://github.com/rails/rails/pull/43415 this works in views and controllers.
2022-03-16 11:05:50 -06:00
Jonathan Hefner
da91d1cd75
Merge pull request #44684 from jenweber/patch-1
[DOC] Introduce concerns example in Getting Started [ci-skip]
2022-03-16 10:45:09 -05:00
Jen Weber
2fb4c18b0a [DOC] Clarify concerns section of Getting Started
Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>
2022-03-15 23:30:30 -04:00
Rafael Mendonça França
5c1bd20f0d
Merge pull request #44693 from ghousemohamed/fix-docs-related-gem-versions
Fix `#version` method docs and some typos [ci-skip]
2022-03-15 16:28:07 -04:00
Rafael Mendonça França
f864490d84
Merge pull request #44047 from ryanhertz/cookie-rotator
changed example cookie rotator to be in after_initialize block
2022-03-15 16:21:54 -04:00
Ghouse Mohamed
6ee6cb554b Fix #version docs and some typos 2022-03-16 01:48:37 +05:30
Eileen M. Uchitelle
3fc9d12875
Merge pull request #44685 from SkipKayhil/dym-for-guide-links
use DidYouMean for broken link fixes in guides
2022-03-15 12:10:10 -04:00
Aaron Patterson
4d7a956ccd
Merge pull request #44688 from lewispb/action-mailbox-notification-docs
Document Action Mailbox instrumentation
2022-03-15 08:25:55 -07:00
Jay Bhoyar
477ab7f5c1 Fix typo: NodeJS -> Node.js 2022-03-15 02:52:17 +05:30
Lewis Buckley
b04fa783b7
[skip ci] Document Action Mailbox instrumentation
Follows 246c13f8df833cd8d8ae423af253bf06ceca0fc0
2022-03-14 20:35:08 +00:00
Hartley McGuire
8b71dc15ef use DidYouMean for broken link fixes in guides
Ruby 2.7+ includes DidYouMean::SpellChecker, so we can use that for
suggesting corrections for broken links instead of a vendored
Levenshtein algorithm.
2022-03-14 16:35:06 -04:00
Vipul A M
0ee85c7992
Merge pull request #44683 from ghousemohamed/fix-typo-github 2022-03-14 08:18:11 -04:00
Ghouse Mohamed
60419870b1 Fixed typo: Github -> GitHub 2022-03-14 17:29:10 +05:30
Jesse Sousa
27a2129929
Fix typo 2022-03-13 21:07:06 -03:00
Jonathan Hefner
0a2ba78402
Merge pull request #44598 from araishikeiwai/patch-1
Improve autoloading_and_reloading_constants.md [ci-skip]
2022-03-13 12:56:44 -05:00
Rick Daniel
186bfc9c30 Improve autoloading_and_reloading_constants.md
Co-authored-by: Hartley McGuire <skipkayhil@gmail.com>
Co-authored-by: Petrik de Heus <petrik@deheus.net>
2022-03-13 13:33:40 -04:00
Jonathan Hefner
e44d0806fc
Merge pull request #44672 from duffuniverse/update-docs-reopening-existing-classes-using-active-support-concern
Fix typo in engines guide for reopening existing classes using concern [ci-skip]
2022-03-13 11:32:32 -05:00
Andrey Sobolev
78ba02267a Reword comment in engines guide 2022-03-13 11:56:50 +03:00
Swaathi Kakarla
b3c5db5455
Fix syntax error in PrimaryApplicationRecord 2022-03-13 13:14:57 +05:30
Jonathan Hefner
c3d4ab00b6
Merge pull request #44660 from julianrubisch/patch-1
Fix ChatRelayJob definition in Testing Guide [ci-skip]
2022-03-12 11:31:11 -06:00
Andy Callaghan
15dc5db9da Remove unmaintained francesc/rails-translate-routes gem
The other two gems here are modern and kept up with modern Rails, and
this one hasn't
2022-03-11 17:34:44 +00:00
Julian Rubisch
66ff8b1439
Fix ChatRelayJob definition in Testing Guide
The `ChatRelayJob` under "14.3 Custom Assertions And Testing Broadcasts Inside Other Components" defined a `perform_later` method, which I think should just be `perform`.
2022-03-11 09:51:11 +01:00
Nick Holden
c773ae65af Add active_record.destroy_association_async_batch_size configuration
This allows applications to specify the maximum number of records that
will be destroyed in a single background job by the `dependent:
:destroy_async` association option. By default, the current behavior
will remain the same: when a parent record is destroyed, all dependent
records will be destroyed in a single background job. If the number of
dependent records is greater than this configuration, the records will
be destroyed in multiple background jobs.

At GitHub, we have a custom method for destroying associated records
in the background that we'd like to replace with
`dependent: :destroy_async`. Some associations have a large number of
dependent records, and our infrastructure requires that background jobs
complete quickly, so we limit the maximum number of dependent records
destroyed in a single background job and enqueue additional jobs when
the number of records exceeds that limit.
2022-03-09 11:13:16 -07:00
Xavier Noria
9b76e93fea Modernizes wording in the autoloading guide 2022-03-08 20:27:46 +01:00
Eileen M. Uchitelle
53566644f3
Merge pull request #44628 from vy0b0x/improve-the-documentation-and-guide-about-where-not
Improve the documentation and guide about where.not
2022-03-08 09:50:33 -05:00
vy0b0x
891227cef8 Improve the documentation and guide about where.not 2022-03-08 04:22:55 +00:00
Alex Ghiculescu
c94ac46cd8 Remove --no-comments from Postgres structure dumps
Reverts https://github.com/rails/rails/pull/43216
Fixes https://github.com/rails/rails/issues/44498

Per the discussion at https://github.com/rails/rails/pull/44603#discussion_r820875837, reverting the feature as it's not clear it should be the default. Users who don't want comments in structure dumps can use `ActiveRecord::Tasks::DatabaseTasks.structure_dump_flags = ['--no-comment']`.
2022-03-07 12:40:12 -06:00
Dave Powers
3c378c4d2f
Update verbose_query_logs method
Reflect that this method was moved out of ActiveRecord::Base
2022-03-03 22:42:52 -05:00
Raj Kumar
7ad738aaf7 remove typo - repeating word like 2022-03-03 18:12:49 +05:30
Aaron Patterson
ea9f0103fd
Revert "Revert "Merge pull request #42843 from buckley-w-david/message-verifier-default-serializer""
This reverts commit fd4e63cc28863b9d1b7cca2da80bb0b1e879c2d3.
2022-03-01 15:14:43 -08:00