Class: Rails::Application::NonSymbolAccessDeprecatedHash
- Inherits:
-
HashWithIndifferentAccess
- Object
- HashWithIndifferentAccess
- Rails::Application::NonSymbolAccessDeprecatedHash
- Defined in:
- lib/rails/application.rb
Overview
:nodoc:
Instance Method Summary collapse
- #[]=(key, value) ⇒ Object
-
#initialize(value = nil) ⇒ NonSymbolAccessDeprecatedHash
constructor
A new instance of NonSymbolAccessDeprecatedHash.
Constructor Details
#initialize(value = nil) ⇒ NonSymbolAccessDeprecatedHash
Returns a new instance of NonSymbolAccessDeprecatedHash.
621 622 623 624 625 626 627 |
# File 'lib/rails/application.rb', line 621 def initialize(value = nil) if value.is_a?(Hash) value.each_pair { |k, v| self[k] = v } else super end end |
Instance Method Details
#[]=(key, value) ⇒ Object
629 630 631 |
# File 'lib/rails/application.rb', line 629 def []=(key, value) regular_writer(key.to_sym, convert_value(value, for: :assignment)) end |