Spec-Zone.ru › Ruby on Rails 8.0

class ActiveRecord::ConnectionNotDefined

Parent:
ActiveRecord::ConnectionNotEstablished

Вызывается, когда пул соединений с базой данных запрошен, но не определён.

Атрибуты

connection_name[R]
role[R]
shard[R]

Публичные методы класса

new(message = nil, connection_name: nil, role: nil, shard: nil) Показать исходный код
# File activerecord/lib/active_record/errors.rb, line 90
def initialize(message = nil, connection_name: nil, role: nil, shard: nil)
  super(message)
  @connection_name = connection_name
  @role = role
  @shard = shard
end
Вызывает метод родительского класса ActiveRecord::ConnectionNotEstablished::new

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API