Sha256: 722046c4727b2ac57630128b233d05fbdb1b1b93efb8e98771483ae4153bd20e

Contents?: true

Size: 418 Bytes

Versions: 9

Compression:

Stored size: 418 Bytes

Contents

require 'rubygems'
require 'active_record'
require 'postgres-copy/active_record'
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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
postgres-copy-0.5.3 lib/postgres-copy.rb
postgres-copy-0.5.2 lib/postgres-copy.rb
postgres-copy-0.5.0 lib/postgres-copy.rb
postgres-copy-0.4.0 lib/postgres-copy.rb
postgres-copy-0.3.6 lib/postgres-copy.rb
activerecord-postgres-copy-0.3.6 lib/postgres-copy.rb
postgres-copy-0.3.4 lib/postgres-copy.rb
postgres-copy-0.3.3 lib/postgres-copy.rb
postgres-copy-0.3.2 lib/postgres-copy.rb