Skip to content

Commit

Permalink
Merge pull request #43095 from cpjmcquillan/patch-1
Browse files Browse the repository at this point in the history
[GUIDES] Fix ActiveJob custom serializer typo [ci-skip]

Co-authored-by: Petrik <petrik@deheus.net>
  • Loading branch information
jonathanhefner and p8 committed Aug 25, 2021
2 parents fe9625c + f2fa3ec commit c70e264
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion guides/source/active_job_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ end
and add this serializer to the list:

```ruby
# config/initializer/custom_serializers.rb
# config/initializers/custom_serializers.rb
Rails.application.config.active_job.custom_serializers << MoneySerializer
```

Expand Down
4 changes: 2 additions & 2 deletions guides/source/autoloading_and_reloading_constants.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ This is key for classes and modules that are cached in places that survive reloa
For example, Active Job serializers are stored inside Active Job:

```ruby
# config/initializer/custom_serializers.rb
# config/initializers/custom_serializers.rb
Rails.application.config.active_job.custom_serializers << MoneySerializer
```

Expand All @@ -151,7 +151,7 @@ There, the module object stored in `MyDecoration` by the time the initializer ru
Classes and modules from the autoload once paths can be autoloaded in `config/initializers`. So, with that configuration this works:

```ruby
# config/initializer/custom_serializers.rb
# config/initializers/custom_serializers.rb
Rails.application.config.active_job.custom_serializers << MoneySerializer
```

Expand Down

0 comments on commit c70e264

Please sign in to comment.