method
root
v2.1.0 -
Show latest stable
- Class:
ActiveRecord::XmlSerializer
root()public
No documentation available.
# File activerecord/lib/active_record/serializers/xml_serializer.rb, line 179
def root
root = (options[:root] || @record.class.to_s.underscore).to_s
dasherize? ? root.dasherize : root
end