Sha256: 2c52a500e7d366671b30bc81af91529db6a5195b130dc5188714967534934536

Contents?: true

Size: 794 Bytes

Versions: 25

Compression:

Stored size: 794 Bytes

Contents

module Weighable
  class Railtie < ::Rails::Railtie
    initializer 'weighable.initialize' do
      ActiveSupport.on_load(:active_record) do
        require 'weighable/model'
        require 'weighable/active_record/migration_extensions/schema_statements'
        require 'weighable/active_record/migration_extensions/table'
        require 'weighable/core_ext'
        ::ActiveRecord::Migration
          .__send__(:include, Weighable::ActiveRecord::MigrationExtensions::SchemaStatements)
        ::ActiveRecord::ConnectionAdapters::TableDefinition
          .__send__(:include, Weighable::ActiveRecord::MigrationExtensions::Table)
        ::ActiveRecord::ConnectionAdapters::Table
          .__send__(:include, Weighable::ActiveRecord::MigrationExtensions::Table)
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
weighable-1.5.0 lib/weighable/railtie.rb
weighable-1.4.0 lib/weighable/railtie.rb
weighable-1.3.0 lib/weighable/railtie.rb
weighable-1.2.1 lib/weighable/railtie.rb
weighable-1.2.0 lib/weighable/railtie.rb
weighable-1.1.0 lib/weighable/railtie.rb
weighable-1.0.1 lib/weighable/railtie.rb
weighable-1.0.0 lib/weighable/railtie.rb
weighable-0.10.1 lib/weighable/railtie.rb
weighable-0.10.0 lib/weighable/railtie.rb
weighable-0.9.0 lib/weighable/railtie.rb
weighable-0.8.1 lib/weighable/railtie.rb
weighable-0.8.0 lib/weighable/railtie.rb
weighable-0.7.1 lib/weighable/railtie.rb
weighable-0.7.0 lib/weighable/railtie.rb
weighable-0.6.1 lib/weighable/railtie.rb
weighable-0.6.0 lib/weighable/railtie.rb
weighable-0.5.1 lib/weighable/railtie.rb
weighable-0.5.0 lib/weighable/railtie.rb
weighable-0.4.0 lib/weighable/railtie.rb