Standard rb fixes

This commit is contained in:
2023-10-31 08:17:10 +11:00
parent 1d43f6ca59
commit c1d756ec6f
9 changed files with 13 additions and 15 deletions

View File

@@ -23,13 +23,13 @@ module Adamantium
end
def weekly
ref = post_tags.where(:tag_id => "70").select(:post_id).dataset
where(:id => ref)
ref = post_tags.where(tag_id: "70").select(:post_id).dataset
where(id: ref)
end
def non_weekly
ref = post_tags.where(:tag_id => "70").select(:post_id).dataset
exclude(:id => ref)
ref = post_tags.where(tag_id: "70").select(:post_id).dataset
exclude(id: ref)
end
def published_between(start_date, end_date)