Skip to content

Commit

Permalink
support for older version of activesupport
Browse files Browse the repository at this point in the history
  • Loading branch information
maccman committed Jul 20, 2010
1 parent 16512ee commit 107383c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/bowline/initializer.rb
Expand Up @@ -110,8 +110,14 @@ def load_gems
# Set the paths from which Bowline will automatically load source files, and
# the load_once paths.
def set_autoload_paths
ActiveSupport::Dependencies.autoload_paths = configuration.autoload_paths.uniq
ActiveSupport::Dependencies.autoload_once_paths = configuration.autoload_once_paths.uniq
# Rails 3 master support
if ActiveSupport::Dependencies.respond_to?(:autoload_paths)
ActiveSupport::Dependencies.autoload_paths = configuration.autoload_paths.uniq
ActiveSupport::Dependencies.autoload_once_paths = configuration.autoload_once_paths.uniq
else
ActiveSupport::Dependencies.load_paths = configuration.autoload_paths.uniq
ActiveSupport::Dependencies.load_once_paths = configuration.autoload_once_paths.uniq
end
end

def add_plugin_load_paths
Expand Down

0 comments on commit 107383c

Please sign in to comment.