-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename Adapter.get to Adapter.lookup
Per #1017 (comment) comment by sandstrom in discussion of the inherited hook > I'm thinking that it would be better to register adapters manually, without using the hook, i.e. > have people call ActiveModel::Serializer::Adapter.register directly (perhaps in an initializer). > Possibly, some inspiration can be taken from how ActiveJob adapters are wired[1]. > [1] https://github.com/rails/rails/blob/master/activejob/lib/active_job/queue_adapter.rb
- Loading branch information
Showing
4 changed files
with
23 additions
and
23 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