refile/refile-fog

Missing max_size attr_reader?

Closed this issue · 3 comments

When using refile-fog with Rackspace I'm getting an undefined method 'max_size' for #<Refile::Fog::Backend:0x007fddf21cccd0> error. Looking through the code it looks like as though both Refile::Backend::S3 and Refile::Backend::FileSystem have an attr_reader for max_size. Should this be set on Refile::Fog::Backend too?

I'm happy to submit a patch if so.

Actually, looking at the S3 backend it looks like things may have moved on interface-wise. I also had to add extend Refile::BackendMacros to Refile::Fog::Backend. Seems to be working (at least on first glance) other than that though. :)

How would you like to proceed with this? Are you looking to refactor Refile::Fog::Backend to be more like Refile::Backend::S3?

I have the same issue, I'll send the PR to fix that

This has been fixed for a while, closing.