require 'rubygems' require 'active_support' require 'active_record' this = File.dirname(__FILE__) Dir["#{this}/acts-as-linkable/*"].each { |c| require c } ActiveRecord::Base.send(:include, ActsAsLinkable) if defined?(ActiveRecord::Base)