app/models/overview.rb
# most recent 3 files uploaded to the user's organization's default stream
most recent 3 files uploaded to the user's organization's default stream
most recent 3 files uploaded to the user ' s organization ' s default stream
def last_org_files
    return if @organization.blank?
    @organization.default_stream.files
                 .limit(3)
                 .reverse_order
                 .flat_map(&:attachments)
  end
def last_org_files return if @organization . blank? @organization . default_stream . files . limit ( 3 ) . reverse_order . flat_map ( & :attachments ) end
most recent 3 files uploaded to the user's organization's default stream
most recent 3 files uploaded to the user ' s organization ' s default stream