require 'rubygems' require 'active_support' require 'active_record' require 'cockpit' require 'acts-as-joinable' require 'paperclip' Paperclip::Railtie.insert this = File.expand_path(File.dirname(__FILE__)) Dir["#{this}/acts-as-assetable/*"].each { |c| require c if File.extname(c) == ".rb" } Dir["#{this}/../app/models/*"].each { |c| require c if File.extname(c) == ".rb" } def Assets(*args, &block) end ActiveRecord::Base.send(:include, ActsAsAssetable) if defined?(ActiveRecord)