What is wrong with my logic in a rails hash?

Posted by stevenheidel on Stack Overflow See other posts from Stack Overflow or by stevenheidel
Published on 2010-01-11T22:02:12Z Indexed on 2010/05/08 22:48 UTC
Read the original article Hit count: 156

Filed under:
|

I have a setting in environment/production.rb of HEROKU = true

This should change my has_attachment has to use s3 instead of the file system, but it doesn't. What's wrong with my logic?

has_attachment :content_type => :image,
               :storage => ($HEROKU ? :s3 : :file_system),
               ...

Thanks!

© Stack Overflow or respective owner

Related posts about ruby

Related posts about ruby-on-rails