Module: ActiveRecord::Remote::Helpers::XMLHelper

Included in:
Base
Defined in:
lib/active_record/remote/helpers/xml_helper.rb

Instance Method Summary collapse

Instance Method Details

#as_xmlObject



5
6
7
# File 'lib/active_record/remote/helpers/xml_helper.rb', line 5

def as_xml
  serializable_hash.to_xml(xml_options)
end

#xml_optionsObject



9
10
11
12
13
14
15
# File 'lib/active_record/remote/helpers/xml_helper.rb', line 9

def xml_options
  {
    root: "ITEM_FILTER",
    dasherize: false,
    skip_types: true
  }
end