Module: ApiPagination::Hooks
- Defined in:
- lib/api-pagination/hooks.rb
Class Method Summary collapse
Class Method Details
.rails_parent_controller ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/api-pagination/hooks.rb', line 7 def self.rails_parent_controller if Gem::Version.new(Rails.version) >= Gem::Version.new('5') || defined?(ActionController::API) ActionController::API else ActionController::Base end end |