technoweenie / attachment_fu

Treat an ActiveRecord model as a file attachment, storing its patch, size, content type, etc.
http://weblog.techno-weenie.net
MIT License
1.02k stars 339 forks source link

RAILS_ROOT is gone in rails 3.1.0 #41

Closed mdchaney closed 12 years ago

mdchaney commented 13 years ago

attachment_fu still makes use of RAILS_ROOT in multiple places. This causes the rails app to fail on startup.

muratguzel commented 12 years ago

I think the problem is about RAILS_ROOT. You have to change the line 4 on attachment_fu.rb file in the plugin folder from RAILS_ROOT to Rails.root.

mdchaney commented 12 years ago

Yes, I know that. It would be nice if the maintainer did the same so that every single user didn't have to :-/