Class: ActiveRecord::ConnectionAdapters::ConnectionHandler::StringConnectionOwner
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::ConnectionHandler::StringConnectionOwner
- 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) ⇒ StringConnectionOwner
constructor
A new instance of StringConnectionOwner.
- #primary_class? ⇒ Boolean
Constructor Details
#initialize(name) ⇒ StringConnectionOwner
Returns a new instance of StringConnectionOwner.
62 63 64 |
# File 'lib/active_record/connection_adapters/abstract/connection_handler.rb', line 62 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
60 61 62 |
# File 'lib/active_record/connection_adapters/abstract/connection_handler.rb', line 60 def name @name end |
Instance Method Details
#current_preventing_writes ⇒ Object
70 71 72 |
# File 'lib/active_record/connection_adapters/abstract/connection_handler.rb', line 70 def current_preventing_writes false end |
#primary_class? ⇒ Boolean
66 67 68 |
# File 'lib/active_record/connection_adapters/abstract/connection_handler.rb', line 66 def primary_class? false end |