Skip to content

Commit

Permalink
add fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Nov 5, 2024
1 parent 4c5b39f commit 7aff5e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def show
authorize! artifacts,
to: :index?

# FIXME(ezekg) https://github.com/brianhempel/active_record_union/issues/35
last_modified = artifacts.maximum(:"#{artifacts.table_name}.updated_at")
latest = artifacts.first
metadata = artifacts.reduce(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def show
authorize! artifacts,
to: :index?

# FIXME(ezekg) why doesn't rails qualify the column name? unions cause an ambiguous column error
# FIXME(ezekg) https://github.com/brianhempel/active_record_union/issues/35
last_modified = artifacts.maximum(:"#{artifacts.table_name}.updated_at")
return unless
stale?(artifacts, last_modified:, cache_control: { max_age: 1.day, private: true })
Expand Down

0 comments on commit 7aff5e6

Please sign in to comment.