Class: ActiveRecord::ConnectionAdapters::ConnectionHandler::StringConnectionName

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/connection_adapters/abstract/connection_handler.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ StringConnectionName

Returns a new instance of StringConnectionName.



60
61
62
# File 'lib/active_record/connection_adapters/abstract/connection_handler.rb', line 60

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



58
59
60
# File 'lib/active_record/connection_adapters/abstract/connection_handler.rb', line 58

def name
  @name
end

Instance Method Details

#current_preventing_writesObject



68
69
70
# File 'lib/active_record/connection_adapters/abstract/connection_handler.rb', line 68

def current_preventing_writes
  false
end

#primary_class?Boolean

Returns:

  • (Boolean)


64
65
66
# File 'lib/active_record/connection_adapters/abstract/connection_handler.rb', line 64

def primary_class?
  false
end