sciencehistory / scihist_digicoll

Science History Institute Digital Collections
Other
13 stars 0 forks source link

Make Work#ordered_viewable_members return an ActiveRecord::Relation not yet fetched #2729

Closed jrochkind closed 3 months ago

jrochkind commented 3 months ago

Caller can add on the .to_a themselves if they want to trigger fetch. But returning the Relation is more flexible, as it lets the caller also chain on other things, say work.ordered_viewable_members.where(role: something), which I am looking to use for PDF work, ref #2492