jnicklas/carrierwave — Issue #597: Error with branch 0.4 and Rails 2.3.5
Author: abelta
Created: 2012-01-30 10:52:31+00:00
State: open

Using version 0.4 as recommended for Rails 2.3.5 I found I got this error:

NoMethodError: undefined method `autoload_paths' for ActiveSupport::Dependencies:Module

My guess it that at some point in the ActiveSupport changed "load_paths" for "autoload_paths" since when you change this line accordingly in carrierwave.rb:84, the error disappears.

ActiveSupport::Dependencies.load_paths << Rails.root.join('app', 'uploaders')

Maybe that single line could be changed to autodetect the presence of "load_paths" or "autoload_paths" making it truly compatible with Rails 2.3.5.