s3_rails icon indicating copy to clipboard operation
s3_rails copied to clipboard

Implement selection of which templates to serve from S3

Open thiagofigueiro opened this issue 9 years ago • 1 comments

This allows you to do something like this in s3_rails.yml:

  include_list: ['reports/yearly_report.pdf.prawn', 'reports/monthly_report.pdf.prawn']

It's a fairly quick-and-dirty implementation that I did on a pinch to get me going with a project at work.

If someone has some time it would be nice to:

  • Add tests.
  • Implement the filter when fetching S3 objects (load_cache) instead of when looking-up cache (query).

thiagofigueiro avatar Dec 16 '15 04:12 thiagofigueiro

Hey, @straydogstudio - sorry about that dud PR yesterday.

This one is working as expected, even thought I'm not super confident in how I implemented it. In any case, it's here for using or throwing away as you see fit.

Cheers

thiagofigueiro avatar Dec 16 '15 07:12 thiagofigueiro