method

root

rails latest stable - Class: ActiveRecord::XmlSerializer

Method deprecated or moved

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

root()
public

No documentation available.

# File activerecord/lib/active_record/serializers/xml_serializer.rb, line 180
    def root
      root = (options[:root] || @record.class.model_name.singular).to_s
      reformat_name(root)
    end