basyura's blog

あしたになったらほんきだす。

support for older version of activesupport

github では ActiveSupport::Dependencies.autoload_paths の差分が吸収されたようだ。

       @@, -110,8 +110,14 @@ module Bowline
110 110   # Set the paths from which Bowline will automatically load source files, and
111 111   # the load_once paths.
112 112   def set_autoload_paths
113     -   ActiveSupport::Dependencies.autoload_paths      = configuration.autoload_paths.uniq
114     -   ActiveSupport::Dependencies.autoload_once_paths = configuration.autoload_once_paths.uniq
    113 +   # Rails 3 master support
    114 +   if ActiveSupport::Dependencies.respond_to?(:autoload_paths)
    115 +      ActiveSupport::Dependencies.autoload_paths      = configuration.autoload_paths.uniq
    116 +      ActiveSupport::Dependencies.autoload_once_paths = configuration.autoload_once_paths.uniq
    117 +   else
    118 +      ActiveSupport::Dependencies.load_paths      = configuration.autoload_paths.uniq
    119 +      ActiveSupport::Dependencies.load_once_paths = configuration.autoload_once_paths.uniq        
    120 +   end
115 121   end
116 122 
117 123   def add_plugin_load_paths
lib/bowline/initializer.rb