Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand path and require all files #1302

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 6 additions & 35 deletions lib/jsonapi-resources.rb
Original file line number Diff line number Diff line change
@@ -1,43 +1,14 @@
require 'jsonapi/resources/railtie'
require 'jsonapi/naive_cache'
require 'jsonapi/compiled_json'
require 'jsonapi/basic_resource'
require 'jsonapi/active_relation_resource'
require 'jsonapi/resource'
require 'jsonapi/cached_response_fragment'
require 'jsonapi/response_document'
# frozen_string_literal: true

require 'jsonapi/acts_as_resource_controller'
require 'jsonapi/basic_resource'
if Rails::VERSION::MAJOR >= 6
ActiveSupport.on_load(:action_controller_base) do
require 'jsonapi/resource_controller'
end
else
require 'jsonapi/resource_controller'
end
require 'jsonapi/resource_controller_metal'
require 'jsonapi/resources/version'
require 'jsonapi/configuration'
require 'jsonapi/paginator'
require 'jsonapi/formatter'
require 'jsonapi/routing_ext'
require 'jsonapi/mime_types'
require 'jsonapi/resource_serializer'
require 'jsonapi/exceptions'
require 'jsonapi/error'
require 'jsonapi/error_codes'
require 'jsonapi/request_parser'
require 'jsonapi/processor'
require 'jsonapi/relationship'
require 'jsonapi/include_directives'
require 'jsonapi/operation'
require 'jsonapi/operation_result'
require 'jsonapi/callbacks'
require 'jsonapi/link_builder'
require 'jsonapi/active_relation/adapters/join_left_active_record_adapter'
require 'jsonapi/active_relation/join_manager'
require 'jsonapi/resource_identity'
require 'jsonapi/resource_fragment'
require 'jsonapi/resource_id_tree'
require 'jsonapi/resource_set'
require 'jsonapi/path'
require 'jsonapi/path_segment'
Dir[File.expand_path('jsonapi/**/*.rb', __dir__)].reverse.each do |f|
require f
end