Skip to content

Commit

Permalink
Document JSON API implementation defs and progress in class
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed Mar 9, 2016
1 parent 7ab39be commit 9e10660
Show file tree
Hide file tree
Showing 6 changed files with 394 additions and 7 deletions.
11 changes: 6 additions & 5 deletions lib/active_model_serializers/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,11 @@ def find_by_name(adapter_name)
end

# Gotta be at the bottom to use the code above it :(
require 'active_model_serializers/adapter/base'
require 'active_model_serializers/adapter/null'
require 'active_model_serializers/adapter/attributes'
require 'active_model_serializers/adapter/json'
require 'active_model_serializers/adapter/json_api'
extend ActiveSupport::Autoload
autoload :Base
autoload :Null
autoload :Attributes
autoload :Json
autoload :JsonApi
end
end
Loading

0 comments on commit 9e10660

Please sign in to comment.