ok， I will think about the suggestions.  

--  
kli
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Saturday, May 11, 2013 at 12:19 AM, Subhas Dandapani wrote:

> In app/models/child.rb:
> > @deleted_photo_keys ||= [] > @deleted_photo_keys.concat(photo_names) > end > > + def related_keys key > + [key, "#{key}_328", "#{key}_160x160"]  
> Hi Ke Li, The 328 and 160x160 are used by the Web application to show thumbnails. But we also have an Android client which downloads different size (I think 640x480). And there may be future clients which download different sizes.
> Is it possible to change this like:
> def related_keys(for_key) self['photo_keys'].keys.select { |check_key| check_key.starts_with? for_key end  
> That's a rough idea, I'm not sure whether we need to use self['photo_keys'] or self['_attachments'], but can you please think on those lines too?
>  
> —
> Reply to this email directly or view it on GitHub (https://github.com/rapidftr/RapidFTR/pull/502/files#r4173868).
>  
>  
>