Skip to content

Commit 9e10660

Browse files
committed
Document JSON API implementation defs and progress in class
1 parent 7ab39be commit 9e10660

File tree

6 files changed

+394
-7
lines changed

6 files changed

+394
-7
lines changed

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)