Flowdock
method

as_indifferent_hash

Importance_0
v4.0.2 - Show latest stable - 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 144
      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.