Skip to content

Commit fcd394a

Browse files
committed
Merge pull request #1482 from bf4/jsonapify
Document JSON API implementation defs and progress in class
2 parents 5008ea3 + bdb997b commit fcd394a

File tree

7 files changed

+398
-7
lines changed

7 files changed

+398
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Fixes:
3434
- [#1488](https://github.com/rails-api/active_model_serializers/pull/1488) Require ActiveSupport's string inflections (@nate00)
3535

3636
Misc:
37+
- [#1482](https://github.com/rails-api/active_model_serializers/pull/1482) Document JSON API implementation defs and progress in class. (@bf4)
3738
- [#1551](https://github.com/rails-api/active_model_serializers/pull/1551) Added codebeat badge (@korzonek)
3839
- [#1527](https://github.com/rails-api/active_model_serializers/pull/1527) Refactor fragment cache class. (@groyoh)
3940
- [#1560](https://github.com/rails-api/active_model_serializers/pull/1560) Update rubocop and address its warnings. (@bf4 @groyoh)

lib/active_model_serializers/adapter.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,11 @@ def find_by_name(adapter_name)
8484
end
8585

8686
# Gotta be at the bottom to use the code above it :(
87-
require 'active_model_serializers/adapter/base'
88-
require 'active_model_serializers/adapter/null'
89-
require 'active_model_serializers/adapter/attributes'
90-
require 'active_model_serializers/adapter/json'
91-
require 'active_model_serializers/adapter/json_api'
87+
extend ActiveSupport::Autoload
88+
autoload :Base
89+
autoload :Null
90+
autoload :Attributes
91+
autoload :Json
92+
autoload :JsonApi
9293
end
9394
end

0 commit comments

Comments
 (0)