Module: Switchman::ActiveRecord::ModelSchema::ClassMethods

Defined in:
lib/switchman/active_record/model_schema.rb

Instance Method Summary collapse

Instance Method Details

#quoted_table_nameObject



7
8
9
10
# File 'lib/switchman/active_record/model_schema.rb', line 7

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