more naming fixes.
* it's Action Mailer not ActionMailer * it's Action Pack not ActionPack * it's Active Support not ActiveSupport /cc @fxn
This commit is contained in:
parent
d2fe72345a
commit
6cc1b4280e
|
@ -504,7 +504,7 @@ A lot of folks have adopted the notion of using try() to attempt operations on o
|
||||||
|
|
||||||
### Swappable Parsers for XMLmini
|
### Swappable Parsers for XMLmini
|
||||||
|
|
||||||
The support for XML parsing in ActiveSupport has been made more flexible by allowing you to swap in different parsers. By default, it uses the standard REXML implementation, but you can easily specify the faster LibXML or Nokogiri implementations for your own applications, provided you have the appropriate gems installed:
|
The support for XML parsing in Active Support has been made more flexible by allowing you to swap in different parsers. By default, it uses the standard REXML implementation, but you can easily specify the faster LibXML or Nokogiri implementations for your own applications, provided you have the appropriate gems installed:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
XmlMini.backend = 'LibXML'
|
XmlMini.backend = 'LibXML'
|
||||||
|
|
|
@ -580,7 +580,7 @@ Action Mailer has been given a new API with TMail being replaced out with the ne
|
||||||
|
|
||||||
* All mailers are now in `app/mailers` by default.
|
* All mailers are now in `app/mailers` by default.
|
||||||
* Can now send email using new API with three methods: `attachments`, `headers` and `mail`.
|
* Can now send email using new API with three methods: `attachments`, `headers` and `mail`.
|
||||||
* ActionMailer now has native support for inline attachments using the `attachments.inline` method.
|
* Action Mailer now has native support for inline attachments using the `attachments.inline` method.
|
||||||
* Action Mailer emailing methods now return `Mail::Message` objects, which can then be sent the `deliver` message to send itself.
|
* Action Mailer emailing methods now return `Mail::Message` objects, which can then be sent the `deliver` message to send itself.
|
||||||
* All delivery methods are now abstracted out to the Mail gem.
|
* All delivery methods are now abstracted out to the Mail gem.
|
||||||
* The mail delivery method can accept a hash of all valid mail header fields with their value pair.
|
* The mail delivery method can accept a hash of all valid mail header fields with their value pair.
|
||||||
|
|
|
@ -113,7 +113,8 @@ Please refer to the [Changelog](https://github.com/rails/rails/blob/master/activ
|
||||||
|
|
||||||
* Add `ActiveModel::ForbiddenAttributesProtection`, a simple module to protect attributes from mass assignment when non-permitted attributes are passed.
|
* Add `ActiveModel::ForbiddenAttributesProtection`, a simple module to protect attributes from mass assignment when non-permitted attributes are passed.
|
||||||
|
|
||||||
* Added `ActiveModel::Model`, a mixin to make Ruby objects work with ActionPack out of box.
|
* Added `ActiveModel::Model`, a mixin to make Ruby objects work with
|
||||||
|
Action Pack out of box.
|
||||||
|
|
||||||
### Deprecations
|
### Deprecations
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ After reading this guide, you will know:
|
||||||
* What Core Extensions are.
|
* What Core Extensions are.
|
||||||
* How to load all extensions.
|
* How to load all extensions.
|
||||||
* How to cherry-pick just the extensions you want.
|
* How to cherry-pick just the extensions you want.
|
||||||
* What extensions ActiveSupport provides.
|
* What extensions Active Support provides.
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -2374,7 +2374,8 @@ NOTE: Defined in `active_support/core_ext/array/wrap.rb`.
|
||||||
|
|
||||||
### Duplicating
|
### Duplicating
|
||||||
|
|
||||||
The method `Array.deep_dup` duplicates itself and all objects inside recursively with ActiveSupport method `Object#deep_dup`. It works like `Array#map` with sending `deep_dup` method to each object inside.
|
The method `Array.deep_dup` duplicates itself and all objects inside
|
||||||
|
recursively with Active Support method `Object#deep_dup`. It works like `Array#map` with sending `deep_dup` method to each object inside.
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
array = [1, [2, 3]]
|
array = [1, [2, 3]]
|
||||||
|
@ -2595,7 +2596,8 @@ NOTE: Defined in `active_support/core_ext/hash/deep_merge.rb`.
|
||||||
|
|
||||||
### Deep duplicating
|
### Deep duplicating
|
||||||
|
|
||||||
The method `Hash.deep_dup` duplicates itself and all keys and values inside recursively with ActiveSupport method `Object#deep_dup`. It works like `Enumerator#each_with_object` with sending `deep_dup` method to each pair inside.
|
The method `Hash.deep_dup` duplicates itself and all keys and values
|
||||||
|
inside recursively with Active Support method `Object#deep_dup`. It works like `Enumerator#each_with_object` with sending `deep_dup` method to each pair inside.
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
hash = { a: 1, b: { c: 2, d: [3, 4] } }
|
hash = { a: 1, b: { c: 2, d: [3, 4] } }
|
||||||
|
|
|
@ -198,7 +198,9 @@ Adding extra logging like this makes it easy to search for unexpected or unusual
|
||||||
|
|
||||||
### Tagged Logging
|
### Tagged Logging
|
||||||
|
|
||||||
When running multi-user, multi-account applications, it’s often useful to be able to filter the logs using some custom rules. `TaggedLogging` in ActiveSupport helps in doing exactly that by stamping log lines with subdomains, request ids, and anything else to aid debugging such applications.
|
When running multi-user, multi-account applications, it’s often useful
|
||||||
|
to be able to filter the logs using some custom rules. `TaggedLogging`
|
||||||
|
in Active Support helps in doing exactly that by stamping log lines with subdomains, request ids, and anything else to aid debugging such applications.
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT))
|
logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT))
|
||||||
|
|
Loading…
Reference in New Issue