Skip to content
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
2 changes: 1 addition & 1 deletion lib/marginalia/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def self.insert_into_active_job

def self.insert_into_action_controller
ActionController::Base.send(:include, ActionControllerInstrumentation)
if defined? ActionController::API
ActiveSupport.on_load :action_controller_api do
ActionController::API.send(:include, ActionControllerInstrumentation)
end
end
Expand Down
Loading