Skip to content

Commit

Permalink
Move to a filter, to avoid conflicting definitions of resources_base
Browse files Browse the repository at this point in the history
cavis committed Nov 14, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 58f1773 commit 47de359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/concerns/api_updated_since.rb
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ module ApiUpdatedSince
end
end

def resources_base
def filtered(resources)
if updated_since?
super.where("updated_at >= ?", updated_since).order(updated_at: :asc)
else

0 comments on commit 47de359

Please sign in to comment.