#--
# Copyright (c) 2008 Matson Systems, Inc.
# Released under the BSD license found in the file 
# LICENSE included with this ActivityStreams plug-in.
#++
# Activity Streams Intitialization
require 'activity_streams'

ActionController::Base.append_view_path(File.join(File.dirname(__FILE__), "views"))

models_path = File.join(directory, 'lib', 'models')
$LOAD_PATH << models_path
if Rails::VERSION::MAJOR >= 2 && 
   Rails::VERSION::MINOR >= 1 && 
   Rails::VERSION::TINY > 0
  ActiveSupport::Dependencies.load_paths << models_path
else
  Dependencies.load_paths << models_path
end

#--
# Copyright (c) 2008 Matson Systems, Inc.
# Released under the BSD license found in the file 
# LICENSE included with this ActivityStreams plug-in.
#++
# Activity Streams Intitialization
require 'activity_streams'

ActionController::Base.append_view_path(File.join(File.dirname(__FILE__), "views"))

models_path = File.join(directory, 'lib', 'models')
$LOAD_PATH << models_path
if Rails::VERSION::MAJOR >= 2 && 
   Rails::VERSION::MINOR >= 1 && 
   Rails::VERSION::TINY >= 0
  ActiveSupport::Dependencies.load_paths << models_path
else
  Dependencies.load_paths << models_path
end

Fix test for ActiveSupport::Depedencies for rails version 2.2.0
Fix test for ActiveSupport::Depedencies for rails version 2.2.0
