public Method

HashWithIndifferentAccess.convert_value(value)

There's no documentation for this item.

Source Code

# File active_support/core_ext/hash/indifferent_access.rb, line 78
def convert_value(value)
  case value
  when Hash
    value.with_indifferent_access
  when Array
    value.collect { |e| e.is_a?(Hash) ? e.with_indifferent_access : e }
  else
    value
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.