Sha256: 04554bda88048ab5e02ecc0e2feff0e00445722afac3ece43de6fd82ec4be5c0

Contents?: true

Size: 599 Bytes

Versions: 21

Compression:

Stored size: 599 Bytes

Contents

# Copyright 2020 Google LLC
#
# Use of this source code is governed by an MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT.

require "activerecord_spanner_adapter/version"

if defined?(Rails)
  module ActiveRecord
    module ConnectionAdapters
      class SpannerRailtie < ::Rails::Railtie
        rake_tasks do
          require "active_record/tasks/spanner_database_tasks"
        end

        ActiveSupport.on_load :active_record do
          require "active_record/connection_adapters/spanner_adapter"
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
activerecord-spanner-adapter-1.6.3 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-1.6.2 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-1.6.1 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-1.6.0 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-1.5.1 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-1.5.0 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-1.4.4 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-1.4.3 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-1.4.2 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-1.4.1 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-1.4.0 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-1.3.1 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-1.2.2 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-1.2.1 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-1.2.0 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-1.1.0 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-1.0.1 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-1.0.0 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-0.7.0 lib/activerecord-spanner-adapter.rb
activerecord-spanner-adapter-0.6.0 lib/activerecord-spanner-adapter.rb