Skip to content

Commit c70e264

Browse files
jonathanhefnerp8
andauthored
Merge pull request rails#43095 from cpjmcquillan/patch-1
[GUIDES] Fix ActiveJob custom serializer typo [ci-skip] Co-authored-by: Petrik <[email protected]>
2 parents fe9625c + f2fa3ec commit c70e264

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

guides/source/active_job_basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ end
451451
and add this serializer to the list:
452452

453453
```ruby
454-
# config/initializer/custom_serializers.rb
454+
# config/initializers/custom_serializers.rb
455455
Rails.application.config.active_job.custom_serializers << MoneySerializer
456456
```
457457

guides/source/autoloading_and_reloading_constants.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ This is key for classes and modules that are cached in places that survive reloa
128128
For example, Active Job serializers are stored inside Active Job:
129129

130130
```ruby
131-
# config/initializer/custom_serializers.rb
131+
# config/initializers/custom_serializers.rb
132132
Rails.application.config.active_job.custom_serializers << MoneySerializer
133133
```
134134

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

153153
```ruby
154-
# config/initializer/custom_serializers.rb
154+
# config/initializers/custom_serializers.rb
155155
Rails.application.config.active_job.custom_serializers << MoneySerializer
156156
```
157157

0 commit comments

Comments
 (0)