# require 'rubygems' # require 'active_record' # require 'activerecord-postgres-copy/base' require 'rails' class PostgresCopy < Rails::Railtie initializer 'postgres-copy' do ActiveSupport.on_load :active_record do require "postgres-copy/active_record" end ActiveSupport.on_load :action_controller do require "postgres-copy/csv_responder" require "postgres-copy/zip_responder" end end end