Skip to content

Commit 7092fe6

Browse files
authored
Rename JSONAPI::Rails::ActionController to JSONAPI::Rails::Controller. (#38)
1 parent 0d84b02 commit 7092fe6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/jsonapi/rails/action_controller.rb renamed to lib/jsonapi/rails/controller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Resource < JSONAPI::Deserializable::Resource
2020
end
2121
end
2222

23-
module ActionController
23+
module Controller
2424
extend ActiveSupport::Concern
2525

2626
JSONAPI_POINTERS_KEY = 'jsonapi_deserializable.jsonapi_pointers'.freeze

lib/jsonapi/rails/railtie.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
require 'jsonapi/rails/parser'
66
require 'jsonapi/rails/renderer'
7+
require 'jsonapi/rails/controller'
78

89
module JSONAPI
910
module Rails
@@ -16,8 +17,7 @@ class Railtie < ::Rails::Railtie
1617

1718
initializer 'jsonapi-rails.action_controller' do
1819
ActiveSupport.on_load(:action_controller) do
19-
require 'jsonapi/rails/action_controller'
20-
include ::JSONAPI::Rails::ActionController
20+
include ::JSONAPI::Rails::Controller
2121

2222
Mime::Type.register MEDIA_TYPE, :jsonapi
2323

0 commit comments

Comments
 (0)