method
as_indifferent_hash
v7.2.3 -
Show latest stable
- Class:
ActiveRecord::Store::IndifferentCoder
as_indifferent_hash(obj)public
No documentation available.
# 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