Sha256: 632a3bca610fcd38d994acf30bb7eaa40b9560d0c1daece00be90c8155449a0f

Contents?: true

Size: 314 Bytes

Versions: 10

Compression:

Stored size: 314 Bytes

Contents

require 'rails'

module Archiving
  class Railtie < ::Rails::Railtie
    initializer 'archiving.install' do |app|
      ActiveSupport.on_load :active_record do
        ActiveRecord::Base.include ArchiveTable
        ActiveRecord::ConnectionAdapters::SchemaStatements.include Migrations
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
archiving-0.6.1 lib/archiving/railtie.rb
archiving-0.6.0 lib/archiving/railtie.rb
archiving-0.5.0 lib/archiving/railtie.rb
archiving-0.4.4 lib/archiving/railtie.rb
archiving-0.4.3 lib/archiving/railtie.rb
archiving-0.4.1 lib/archiving/railtie.rb
archiving-0.4.0 lib/archiving/railtie.rb
archiving-0.3.1 lib/archiving/railtie.rb
archiving-0.3.0 lib/archiving/railtie.rb
archiving-0.2.1 lib/archiving/railtie.rb