method

remove_root

Importance_0
v3.2.13 - Show latest stable - 0 notes - Class: ActiveResource::Formats
remove_root(data) public

No documentation

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

Hide source
# File activeresource/lib/active_resource/formats.rb, line 14
    def self.remove_root(data)
      if data.is_a?(Hash) && data.keys.size == 1
        data.values.first
      else
        data
      end
    end
Register or log in to add new notes.