fraul
3ba6bc1720
Update the upgrade guides for Rails 7.1 regarding the breaking change (in development/test environments) of the location of secret_key_base ( #52083 )
...
Co-authored-by: Felipe <felipe@temporadalivre.com>
2024-06-12 13:15:02 -07:00
Sampat Badhe
53194a442e
Correct typo for Active Record Callbacks doc [ci skip]
2024-06-11 21:46:15 +05:30
Xavier Noria
f64a4134df
Define the new start_transaction.active_record event
2024-06-10 17:30:37 +02:00
Bram Janssen
546b6aadbe
docs: update list of methods that trigger active record callbacks
2024-06-10 11:19:29 +02:00
Ridhwana
78d655907a
[RF-DOCS] Active Record Callbacks ( #51654 )
...
Review and improve Action View Overview guide. [ci-skip]
* Samples that use Proc.new {} can likely be simplified to just use proc {}
* Link to the validations guide where we mention it under conditional callbacks
* after_find callbacks are also triggered by a few other methods: take, sole, find_by!
* We could potentially add some more examples on different types of callbacks that aren't there.
* Updated some sections for clarity
Co-authored-by: Petrik de Heus <petrik@deheus.net>
Co-authored-by: Carlos Antonio da Silva <carlosantoniodasilva@gmail.com>
Co-authored-by: hatsu <hajiwata0308@gmail.com>
2024-06-10 09:18:24 +02:00
yuuji.yaginuma
8c0bbdca09
Fix a value for disabling `enqueue_after_transaction_commit` [ci-skip]
...
`enqueue_after_transaction_commit` expects Symbol values, not Boolean.
a472403d55/activejob/lib/active_job/enqueue_after_transaction_commit.rb (L23-L30)
2024-06-09 16:37:21 +09:00
John Athayde
7dbe81710e
Improve RTL Rendering for Guides ( #51613 )
...
Improve RTL language support, specifically focused on Arabic (MSA), Farsi, and Hebrew languages, including custom fonts for those languages, a javascript to detect auto-translation and shift the dir attribute, and other cleanup based on volunteer feedback.
Co-authored-by: Carlos Antonio da Silva <carlosantoniodasilva@gmail.com>
2024-06-07 14:00:52 -03:00
Yu Le
25b26cfcb6
Fix typo in active_record_basics.md [skip ci]
2024-06-07 13:27:13 +08:00
Majid Alaeinia
5737cf9ce0
Update association_basics.md
2024-06-05 04:55:01 +03:30
Rafael Mendonça França
f4c39b5e2d
Merge pull request #51994 from matthewd/preserves-timezone-very-deprecated
...
Re-roll deprecation of to_time_preserves_timezone
2024-06-04 11:02:11 -04:00
Petrik de Heus
5ade5d4173
Merge pull request #50785 from JunichiIto/add-note-to-params-hash
...
Add note about `params` hash in Action Controller Overview [ci skip]
2024-06-04 14:52:10 +02:00
Xavier Noria
2a5b4fd6cb
Add usage guidelines to transaction.active_record docs
2024-06-03 23:22:21 +02:00
Carlos Antonio da Silva
40a52362af
Merge pull request #52004 from duffuniverse/fix-typo-in-active-record-and-postgresql-guide
...
[ci skip] Fix a typo in Active Record and PostgreSQL guide
2024-06-03 13:31:02 -03:00
Xavier Noria
4a4ed0fb0e
Pass transaction: nil in sql.active_record events if no transaction is open
2024-06-03 17:36:20 +02:00
Eileen M. Uchitelle
9cafa55ddd
Merge pull request #51339 from gjtorikian/enable-n_plus_one_only-toggling
...
Allow one to set `strict_loading_mode` globally
2024-06-03 06:12:04 -07:00
Andrey Sobolev
e1f00d2a93
Fix a typo in Active Record and PostgreSQL guide
2024-06-03 15:16:30 +03:00
Xavier Noria
f53d020c44
Copy-edit pass on the multiple databases guide
...
Main points:
* Applies our documentation guidelines (names of files, punctuation in comments, etc.)
* AnimalsRecord was introduced before the primary abstract class. Before this
point, stuff related to the primary database is explained first, and then you
go for the extra database. This is the natural order, I think. I reordered
for consistency.
* PrimaryApplicationRecord was missing connects_to.
* Fixes parent class for the example related to PrimaryApplicationRecord.
2024-06-03 14:05:03 +02:00
Garen J. Torikian
5ff9915db9
Allow one to set `strict_loading_mode` globally
2024-06-02 14:38:38 -05:00
Matthew Draper
43fcdfa4d0
Revert "Remove deprecated support for the pre-Ruby 2.4 behavior of `to_time`"
...
This reverts commit b1b2c6d59c
.
2024-06-02 23:52:59 +09:30
Rafael Mendonça França
67c7c913c6
Merge pull request #51976 from robin850/nitpicks-tuning-perf-guide
...
Tiny fixes to the "Tuning Performance" guide [ci skip]
2024-05-31 17:16:38 -04:00
Rafael Mendonça França
fd81dd6252
Merge pull request #51977 from wjohnstondrip/performance-documentation-tweak
...
Changed dimmed to deemed, in what I assume was a typo
2024-05-31 17:05:15 -04:00
Rafael Mendonça França
fe57bd2462
Lower case the `link` header
...
Since 1fbcf54289
the early hints will be checked against Rack::Link that requires all
headers to be lower cased.
Fixes #51961 .
2024-05-31 21:00:22 +00:00
William Johnston
aa1ea1b871
Changed dimmed to deemed, in what I assume was a typo
2024-05-31 15:57:12 -05:00
Robin Dupret
78975c0267
Tiny fixes to the "Tuning Performance" guide [ci skip]
...
Following up #51924 .
2024-05-31 21:10:38 +02:00
Akhil G Krishnan
b7d8725cd6
Remove .devcontainer from default rails app directory guide
2024-05-31 23:04:03 +05:30
Xavier Noria
c16d552c32
Include the current transaction in sql.active_record event payloads
2024-05-31 13:05:20 +02:00
sampatbadhe
064c605dce
Add missing $ for a bash [ci skip]
2024-05-31 12:33:04 +05:30
Xavier Noria
9283b9ed08
Reorder items in `transaction.active_record` docs
...
The `transaction.active_record` event is about transactions. Let's
first document the transaction object, then the transaction state,
and finally the connection in case you need more context.
2024-05-31 00:16:47 +02:00
Xavier Noria
ea0f0a2c96
Pass the transaction to the transaction.active_record event
2024-05-30 20:47:43 +02:00
Junichi Ito
f172824d77
[docs] Add note about params hash
...
Newbies tends to misunderstand params hash is a plain old Hash. So I
added a note that params hash is ActionController::Parameters.
2024-05-30 20:51:31 +09:00
Rafael Mendonça França
3aa026f691
Remove edgeguide host from the release notes
2024-05-29 23:16:56 +00:00
Louis-Michel Couture
f247a19dc7
Fix Tuning Performance for Deployment guide link [ci skip]
2024-05-29 14:56:40 -04:00
Jean Boussier
23bf7b6807
Add a Rails Guide called "Tuning Performance for Deployment".
...
This guide explains major concurrency and performance principles
for Puma and CRuby.
This is a reworked version of #50949 .
Closes : #50949
Co-authored-by: Noah Gibbs <noah.gibbs@shopify.com>
2024-05-29 16:46:51 +02:00
Rafael Mendonça França
809409ab29
Merge pull request #51925 from zzak/re-51395-proxy_association
...
Make CollectionProxy#proxy_association public API
2024-05-28 13:39:28 -04:00
Mike Hickman
c6df8baf4b
Update spelling: Getting Start to Getting Started
2024-05-28 16:01:41 +01:00
zzak
7aa7e1e3e1
Make CollectionProxy#proxy_association public API
...
Co-authored-by: Petrik <petrik@deheus.net>
2024-05-28 07:47:43 +09:00
Rafael Mendonça França
f6918a5b5d
Merge pull request #51909 from rails/rm-release-notes
...
Draft of the release notes
2024-05-27 16:39:42 -04:00
Rafael Mendonça França
b0efe426e7
Edit pass on 7.2 release notes
2024-05-27 19:53:04 +00:00
Petrik de Heus
d0a3e18d4d
Merge pull request #51867 from duffuniverse/add-missed-comma-to-instrumentation-guide
...
[ci skip] Add a comma in the Exceptions section of Active Support Instrumentation guide
2024-05-25 23:29:21 +02:00
Xavier Noria
4cde578c0e
Restore original header for browser version guards
2024-05-25 19:27:30 +02:00
Xavier Noria
0a9d844c9a
Remove backticks from jemalloc
...
jemalloc is the name of a project.
2024-05-25 09:42:38 +02:00
Xavier Noria
91f9d640bd
Edit pass over the 7.2 release notes
2024-05-25 09:33:58 +02:00
Rafael Mendonça França
bb3da8726b
Draft of the release notes
2024-05-24 20:42:13 +00:00
Rafael Mendonça França
fe4617fd7e
Merge pull request #51912 from Earlopain/aj-priority
...
Document what higher/lower priority numbers mean in ActiveJob guide [ci skip]
2024-05-24 16:26:52 -04:00
Earlopain
2e8c0de787
Document what higher/lower priority numbers mean in ActiveJob guide
...
Or rather, what they could mean. What to do with priority numbers is up to the adapter implementation.
All adapters that support priority that I know of treat lower priority as more urgent:
* Backburner
* Delayed Job
* Que
* SolidQueue
* GoodJob (in v4)
2024-05-24 22:12:06 +02:00
Benjamín Silva
25b238568c
Fix association_basics.md
...
In this section the relation was renamed `:writer` so we need to reflect that in the examples.
2024-05-24 16:10:22 -04:00
Akhil G Krishnan
1c0fa2f542
Add Railties notable changes in 7.2 release note
2024-05-24 23:50:30 +05:30
Rafael Mendonça França
213bdfe470
Use the `--devcontainer` option when generating a new Rails app in the guide
2024-05-23 21:12:16 +00:00
Carlos Antonio da Silva
be2ecdf26d
Merge pull request #51893 from indigotechtutorials/main
...
Fix the Direct Upload class example in Active Storage Docs [ci skip]
2024-05-23 17:14:09 -03:00
Rafael Mendonça França
b284f8b867
Merge pull request #51896 from rails/rm-make-invert-opt-in
...
Don't enable automatically_invert_plural_associations by default
2024-05-23 15:49:51 -04:00