module ApiPagination::Hooks
Public Class Methods
rails_parent_controller()
click to toggle source
# File lib/api-pagination/hooks.rb, line 32 def self.rails_parent_controller if Rails::VERSION::MAJOR >= 5 || defined?(ActionController::API) ActionController::API else ActionController::Base end end