forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into decouple-nokogiri
* main: (169 commits) Add endless range example to the Active Record Querying guide Added default values to raise_delivery_errors guide (rails#45616) better docs for ActiveSupport::EncryptedFile#read Fix caching of missed translations Fix extra changelog entry added in 959d46e (rails#45604) Add `quarter` method to date/time (rails#45009) Fix testing changing yaml_column_permitted_classes Remove unnecessary or incorrect calls to connection_handler Defer constant loading of `ActiveRecord::DestroyAssociationAsyncJob` via a String instead of a class constant ActiveRecord::Store encode store as a regular Hash Appease rubocop Fix failing test with mysql 5.7 Fix cases where CTE's are not supported Allow Symbols by default in YAML serialized columns Remove unnecessary initializers Preserve `job.enqueued_at` timestamp precision Improve performance by removing respond_to? from runtime code Move configuration to the right section Fix ivar name in PoolManager Change ActiveRecord::Coders::YAMLColumn default to safe_load ...
- Loading branch information
Showing
277 changed files
with
5,507 additions
and
2,117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
Description: | ||
============ | ||
Generates a new cable channel for the server (in Ruby) and client (in JavaScript). | ||
Pass the channel name, either CamelCased or under_scored, and an optional list of channel actions as arguments. | ||
|
||
Example: | ||
======== | ||
bin/rails generate channel Chat speak | ||
Examples: | ||
`bin/rails generate channel notification` | ||
|
||
creates a Chat channel class, test and JavaScript asset: | ||
Channel: app/channels/chat_channel.rb | ||
Test: test/channels/chat_channel_test.rb | ||
Assets: $JAVASCRIPT_PATH/channels/chat_channel.js | ||
creates a notification channel class, test and JavaScript asset: | ||
Channel: app/channels/notification_channel.rb | ||
Test: test/channels/notification_channel_test.rb | ||
Assets: $JAVASCRIPT_PATH/channels/notification_channel.js | ||
|
||
`bin/rails generate channel chat speak` | ||
|
||
creates a chat channel with a speak action. | ||
|
||
`bin/rails generate channel comments --no-assets` | ||
|
||
creates a comments channel without JavaScript assets. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
Description: | ||
============ | ||
Generates a new mailer and its views. Passes the mailer name, either | ||
CamelCased or under_scored, and an optional list of emails as arguments. | ||
|
||
This generates a mailer class in app/mailers and invokes your template | ||
engine and test framework generators. | ||
|
||
Example: | ||
======== | ||
bin/rails generate mailer Notifications signup forgot_password invoice | ||
Examples: | ||
`bin/rails generate mailer sign_up` | ||
|
||
creates a sign up mailer class, views, and test: | ||
Mailer: app/mailers/sign_up_mailer.rb | ||
Views: app/views/sign_up_mailer/signup.text.erb [...] | ||
Test: test/mailers/sign_up_mailer_test.rb | ||
|
||
`bin/rails generate mailer notifications sign_up forgot_password invoice` | ||
|
||
creates a notifications mailer with sign_up, forgot_password, and invoice actions. | ||
|
||
|
||
creates a Notifications mailer class, views, and test: | ||
Mailer: app/mailers/notifications_mailer.rb | ||
Views: app/views/notifications_mailer/signup.text.erb [...] | ||
Test: test/mailers/notifications_mailer_test.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.