Flowdock
method

remove_root

Importance_0
Ruby on Rails latest stable (v4.1.8) - 0 notes - Class: ActiveResource::Formats

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

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.