method

as_indifferent_hash

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: IndifferentCoder
as_indifferent_hash(obj) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/store.rb, line 278
        def self.as_indifferent_hash(obj)
          case obj
          when ActiveSupport::HashWithIndifferentAccess
            obj
          when Hash
            obj.with_indifferent_access
          else
            ActiveSupport::HashWithIndifferentAccess.new
          end
        end
Register or log in to add new notes.