On Saturday, March 9, 2013 1:54:38 AM UTC, Ruby-Forum.com User wrote:
>
> I'm using Attachment_fu for a model that has 3 attachment fields with s3
> for storage.
>
> Unit testing this model is very slow. This made me think if there is a
> way to switch between storage types during testing and
> development/production?
>
Attachment_fu is a little old school, but there's no reason you couldn't do
something like
has_attachment :storage => (Rails.env.production? ? :s3 : :file_system)
to use s3 for production and filesystem for everything else
Fred
>
> --
> Posted via http://www.ruby-forum.com/.
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/qZvSDiIWLg0J.
For more options, visit https://groups.google.com/groups/opt_out.