Sha256: 4287e13f02db49e0f715f8388f6715505c28b8acf14da72341440fcb42aa90cc

Contents?: true

Size: 343 Bytes

Versions: 49

Compression:

Stored size: 343 Bytes

Contents

# frozen_string_literal: true

module Switchman
  module ActiveRecord
    module ModelSchema
      module ClassMethods
        def quoted_table_name
          @quoted_table_name ||= {}
          @quoted_table_name[Shard.current(connection_class_for_self).id] ||= connection.quote_table_name(table_name)
        end
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
switchman-3.3.2 lib/switchman/active_record/model_schema.rb
switchman-3.3.1 lib/switchman/active_record/model_schema.rb
switchman-3.3.0 lib/switchman/active_record/model_schema.rb
switchman-3.2.1 lib/switchman/active_record/model_schema.rb
switchman-3.2.0 lib/switchman/active_record/model_schema.rb
switchman-3.1.3 lib/switchman/active_record/model_schema.rb
switchman-3.1.2 lib/switchman/active_record/model_schema.rb
switchman-3.1.1 lib/switchman/active_record/model_schema.rb
switchman-3.1.0 lib/switchman/active_record/model_schema.rb