# File lib/rabl/helpers.rb, line 43
    def determine_object_root(data, include_root=true)
      return if object_root_name == false
      root_name = data_name(data).to_s if include_root
      if is_object?(data)
        root_name
      elsif is_collection?(data)
        object_root_name || (root_name.singularize if root_name)
      end
    end