Commit Graph

9144 Commits

Author SHA1 Message Date
Ridhwana
6e0b89c533
[RF DOCS] Active Model Basics Documentation [ci-skip] (#51210)
Review the Active Model Basics guide.

Add `Attributes` and `AttributeAssignment` sections.

Update the rest of the sections by trying to provide more information, be more clear, and include more examples. In some parts, it references the API where more information about the methods can be provided.

Expand `ActiveModel::API` and `ActiveModel::Model`, reorganize sections to a more sensible order.

Co-authored-by: Carlos Antonio da Silva <carlosantoniodasilva@gmail.com>
2024-03-07 14:17:56 -03:00
Rafael Mendonça França
f7353283fd
Merge pull request #51248 from Earlopain/ar-guides-links
Add mention that methods can also skip callbacks to the AR Validations Guide [ci-skip]
2024-03-05 12:05:24 -05:00
Carlos Antonio da Silva
d514a31eed Remove WIP from Action Mailbox & Action Text guides [ci skip]
These have been reviewed recently by the Rails Foundation team working
on the guides:

Action Mailbox: https://github.com/rails/rails/pull/50973
Action Text: https://github.com/rails/rails/pull/50977
2024-03-05 11:48:06 -03:00
Earlopain
d3f16a7de1
Encourage the user to check method docs in AR Callback/Validation Guides 2024-03-05 13:31:39 +01:00
Earlopain
17662a4876
Link to API docs in AR Callbacks/Validations guide 2024-03-04 11:26:35 +01:00
Earlopain
1aa2b9306c
Update output of bin/rails test -h in testing guide 2024-03-01 13:32:16 +01:00
Collin Jilbert
f14a6298f8
Add Solid Queue to the list of backends in Active Job guide (#51212)
This PR adds Solid Queue to the list of backends for ActiveJob and links to the README for Solid Queue.

[ci skip]
2024-02-28 09:55:47 -03:00
Collin Jilbert
9c01c39480
Update layouts_and_rendering.md
This PR corrects a reference to the act of renaming a partial when in fact it is a local variable that would be renamed instead.
2024-02-24 07:35:07 -06:00
Avee
6534a5d91f
[ci skip] Update ActiveStorage Docs (#51157)
* Update ActiveStorage Docs

Included documentation around usage of the `key` parameter in `.attach` method to specify folders within S3 Bucket for organizing files and storing them with intuitive names.

* Update active_storage_overview.md

lint correction - removed trailing whitespace

Co-authored-by: Rafael Mendonça França <rafael@rubyonrails.org>
2024-02-22 14:58:43 -05:00
mylesboone
278d6574cf
ActiveRecord::Relation#order supports hash like ActiveRecord::Relation#where (#50000)
* relation#order supports hash like relation#where

This allows for an ActiveRecord::Relation to take a hash such as
`Topic.includes(:posts).order(posts: { created_at: :desc })`

* use is_a? to support subclasses of each

Co-authored-by: Rafael Mendonça França <rafael@rubyonrails.org>
2024-02-21 12:43:15 -05:00
Vipul A M
cdc1ca7a32
Merge pull request #51153 from dzjuck/main
Fix code formatting in layouts and rendering guide [skip ci]
2024-02-21 06:08:56 -05:00
Ilya Lavrov
36a1eca3fd Fix code formatting in layouts and rendering guide 2024-02-21 12:01:02 +01:00
Rafael Mendonça França
05b4db2ad0
Merge pull request #51131 from tonytonyjan/filter-redirect-params
Add parameter filter capability for redirect locations
2024-02-20 18:25:12 -05:00
Rafael Mendonça França
eccc6061f4
Remove deprecated behavior that would rollback a transaction block when exited using return, break or throw. 2024-02-20 21:56:51 +00:00
Rafael Mendonça França
c313d91613
Remove deprecated support to pass rewhere to ActiveRecord::Relation#merge 2024-02-20 21:56:13 +00:00
Rafael Mendonça França
c09956a3ad
Remove deprecated support to pass deferrable: true to add_foreign_key 2024-02-20 21:55:04 +00:00
Rafael Mendonça França
95b48d8a3b
Remove deprecated support to quote ActiveSupport::Duration 2024-02-20 21:54:57 +00:00
Rafael Mendonça França
240e9dac0a
Remove deprecated #quote_bound_value 2024-02-20 21:53:43 +00:00
Rafael Mendonça França
465fbd78f4
Remove deprecated ActiveRecord::ConnectionAdapters::ConnectionPool#connection_klass 2024-02-20 21:53:41 +00:00
Rafael Mendonça França
64cbcd7a8c
Remove deprecated support to apply some methods in the Connection Handle to the connections pools for the current role when the role arguments isn't provided 2024-02-20 21:53:38 +00:00
Rafael Mendonça França
9489c14b7b
Remove deprecated #all_connection_pools 2024-02-20 21:53:17 +00:00
Rafael Mendonça França
7ddf423329
Remove deprecated ActiveRecord::ConnectionAdapters::SchemaCache#data_sources 2024-02-20 21:53:13 +00:00
Rafael Mendonça França
5667de1aca
Remove deprecated ActiveRecord::ConnectionAdapters::SchemaCache.load_from 2024-02-20 21:52:11 +00:00
Rafael Mendonça França
9391f0a0e8
Remove deprecated #all_foreign_keys_valid? from database adapters 2024-02-20 21:51:31 +00:00
Rafael Mendonça França
8069cc83e8
Remove deprecated support to passing coder and class as second argument to serialize 2024-02-20 21:51:30 +00:00
Rafael Mendonça França
39997a0f04
Remove deprecated support to ActiveRecord::Base#read_attribute(:id) to return the custom primary key value 2024-02-20 21:51:29 +00:00
Rafael Mendonça França
f40a697e0f
Remove deprecated TestFixtures.fixture_path 2024-02-20 21:51:26 +00:00
Rafael Mendonça França
4bf2c4cea1
Remove deprecated behavior to support referring to a singular association by its plural name 2024-02-20 21:50:36 +00:00
Rafael Mendonça França
9ef79385d9
Remove deprecated support to passing SchemaMigration and InternalMetadata classes as arguments to ActiveRecord::MigrationContext. 2024-02-20 21:50:05 +00:00
Rafael Mendonça França
02f66fe3e2
Remove deprecated ActiveRecord::Migration.check_pending method 2024-02-20 21:50:04 +00:00
Rafael Mendonça França
e509a0edb5
Remove deprecated methods on ActiveRecord::LogSubscriber 2024-02-20 21:50:03 +00:00
Rafael Mendonça França
2fb186dabb
Remove deprecated support to define explain in the connection adapter with 2 arguments 2024-02-20 21:50:02 +00:00
Rafael Mendonça França
dca35bbd77
Remove deprecated ActiveRecord::ActiveJobRequiredError 2024-02-20 21:50:01 +00:00
Rafael Mendonça França
5515fa49a2
Remove deprecated methods in ActiveRecord::Base 2024-02-20 21:50:00 +00:00
Rafael Mendonça França
7a08a86d21
Remove deprecated name argument from ActiveRecord::Base.remove_connection 2024-02-20 21:49:59 +00:00
Rafael Mendonça França
94d24f4504
[R] Remove deprecated support to call alias_attribute with non-existent attribute names 2024-02-20 21:49:56 +00:00
Rafael Mendonça França
2af68b257f
Remove deprecated Rails.application.config.active_record.suppress_multiple_database_warning 2024-02-20 21:39:06 +00:00
Roque Pinel
f4f3ef7781
Add parameter filter capability for redirect locations
It uses the `config.filter_parameters` to match what needs to be
filtered. The result would be like this:

```
Redirected to http://secret.foo.bar?username=roque&password=[FILTERED]
```
2024-02-20 11:31:12 +08:00
bhumi1102
554e71af0b
[RF DOCS] Add documentation for perform_all_later to Active Job Basics guide [ci-skip] (#51004)
Add documentation related to perform_all_later for bulk enqueuing jobs.

Co-authored-by: Carlos Antonio da Silva <carlosantoniodasilva@gmail.com>
2024-02-19 13:56:15 -03:00
Hartley McGuire
cd4a5b0733
Merge pull request #51042 from lsglucas/docs/security
docs: Outdated CORS initializer [ci-skip]
2024-02-18 12:10:42 -05:00
Hartley McGuire
d212c0bd34
Add links to config.active_job.default_queue_name
[ci-skip]
2024-02-18 11:43:51 -05:00
Alex Ghiculescu
419599e107
Document missing active storage queue configs
ref https://github.com/rails/rails/pull/51030#discussion_r1491915873
2024-02-17 13:11:59 +10:00
Sean Doyle
01502fe239 Remove Upgrade Guidance 2024-02-14 20:41:08 -05:00
Carlos Antonio da Silva
bbdb23dcd6
Merge pull request #51064 from mkasberg/debugging-guide
Fix typo in Debugging Guide [ci skip]
2024-02-14 15:44:00 -03:00
Ridhwana
a4253311d8
[RF DOCS] Review Action Text guide [ci-skip] (#50977)
Review and improve Action Text guide:

- More detailed installation steps
- Explain generated files a bit
- Improved examples
- More information around customizing the HTML/CSS
- Expand information about attachments

Co-authored-by: Carlos Antonio da Silva <carlosantoniodasilva@gmail.com>
2024-02-14 15:07:35 -03:00
bhumi1102
a8002e4604
[RF DOCS] Review Action Mailbox guide [ci-skip] (#50973)
Review and improve Action Mailbox guide, with some sections added/improved:

- Installation steps
- Processing Incoming Email - more of a step by step of the flow
- Mail object and it's fields
- List of Inbound Email 'status' values
- Routing and Incineration

Co-authored-by: Carlos Antonio da Silva <carlosantoniodasilva@gmail.com>
2024-02-14 15:02:15 -03:00
Mike Kasberg
72410ffc49 Fix typo in Debugging Guide [ciskip]
While I was reading the Debugging Rails Applications guide, this typo
threw me off and I had to re-read it to understand the intended meaning,
so it seems like it's worth fixing.

And after digging in a little more, rewording the `path` example can add
some clarity.
2024-02-13 13:35:07 -07:00
lsglucas
ca73646b4a fix: outdated cors initializer docs 2024-02-10 13:30:00 -03:00
Xavier Noria
5876939a5a Update 7.0 release notes re inflections and the once autoloader 2024-02-10 12:42:40 +01:00
Rafael Mendonça França
f0adde935e
Fix configuration order 2024-02-09 23:50:00 +00:00