Sha256: 93d4d564c4c76bc1ae9eb90275be6aabe98b6e1ec1d5da7963789432ffca9a1e

Contents?: true

Size: 578 Bytes

Versions: 1

Compression:

Stored size: 578 Bytes

Contents

require "scenic/version"
require "scenic/railtie"
require "scenic/active_record/command_recorder"
require "scenic/active_record/schema_dumper"
require "scenic/active_record/statements"

module Scenic
  def self.load
    ::ActiveRecord::ConnectionAdapters::AbstractAdapter.class_eval do
      include Scenic::ActiveRecord::Statements
    end

    ::ActiveRecord::Migration::CommandRecorder.class_eval do
      include Scenic::ActiveRecord::CommandRecorder
    end

    ::ActiveRecord::SchemaDumper.class_eval do
      include Scenic::ActiveRecord::SchemaDumper
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
scenic-0.1.0 lib/scenic.rb