Project

General

Profile

« Previous | Next » 

Revision d7ce6881

Added by Ewoud Kohl van Wijngaarden over 1 year ago

Refs #35300 - Pass arguments as keyword arguments

View differences:

app/controllers/api/base_controller.rb
def resource_scope_for_index(options = {})
scope = resource_scope(options).search_for(*search_options)
return scope if paginate_options[:per_page] == 'all'
scope.paginate(paginate_options)
scope.paginate(**paginate_options)
end
def api_request?

Also available in: Unified diff