Sha256: 43f3fc65488aaf87b99a0434a9f805fab2e78f4c843ab1ab27963852ba261cac

Contents?: true

Size: 622 Bytes

Versions: 2

Compression:

Stored size: 622 Bytes

Contents

require "active_support"
require "arel-mysql-index-hint/version"

ActiveSupport.on_load :active_record do
  require "arel-mysql-index-hint/active_record-hint_methods"
  require "arel-mysql-index-hint/arel-table"
  require "arel-mysql-index-hint/arel-visitors-mysql"

  ActiveRecord::Relation.class_eval do
    include ArelMysqlIndexHint::ActiveRecordHintMethods
  end

  ActiveRecord::Querying.class_eval do
    delegate :hint, :to => :all
  end

  Arel::Table.class_eval do
    include ArelMysqlIndexHint::ArelTable
  end

  Arel::Visitors::MySQL.class_eval do
    include ArelMysqlIndexHint::ArelVisitorsMySQL
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
arel-mysql-index-hint-0.2.0 lib/arel-mysql-index-hint.rb
arel-mysql-index-hint-0.1.4 lib/arel-mysql-index-hint.rb