Class: ActiveRecord::ConnectionAdapters::ConnectionHandler::StringConnectionName
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::ConnectionHandler::StringConnectionName
- Defined in:
- lib/active_record/connection_adapters/abstract/connection_handler.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #current_preventing_writes ⇒ Object
-
#initialize(name) ⇒ StringConnectionName
constructor
A new instance of StringConnectionName.
- #primary_class? ⇒ Boolean
Constructor Details
#initialize(name) ⇒ StringConnectionName
Returns a new instance of StringConnectionName.
64 65 66 |
# File 'lib/active_record/connection_adapters/abstract/connection_handler.rb', line 64 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
62 63 64 |
# File 'lib/active_record/connection_adapters/abstract/connection_handler.rb', line 62 def name @name end |
Instance Method Details
#current_preventing_writes ⇒ Object
72 73 74 |
# File 'lib/active_record/connection_adapters/abstract/connection_handler.rb', line 72 def current_preventing_writes false end |
#primary_class? ⇒ Boolean
68 69 70 |
# File 'lib/active_record/connection_adapters/abstract/connection_handler.rb', line 68 def primary_class? false end |