You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.
I have trouble understanding what the output of this method should be (and, well, the transformations that take place in that method). Can somebody explain please?
def pagination_data(resource, key)
keys = [:pagination, key]
[resource.data, resource.metadata[:options]].inject(nil) do |result, data_source|
result or keys.inject(data_source) { |source, key| source.try(:[], key) }
end
end
I have trouble understanding what the output of this method should be (and, well, the transformations that take place in that method). Can somebody explain please?
pageable.rb#L64
The text was updated successfully, but these errors were encountered: