edge badge
Methods
#
N
Class Public methods
new(connection, max)
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 167
def initialize(connection, max)
  super(max)
  @connection = connection
  @counter = 0
end
Instance Public methods
[]=(sql, key)
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 177
def []=(sql, key)
  super.tap { @counter += 1 }
end
next_key()
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 173
def next_key
  "a#{@counter + 1}"
end