Module: RablRails::Renderers::XML
Instance Method Summary collapse
Methods included from Hash
Methods included from Helpers
Instance Method Details
#format_output(hash, options = {}) ⇒ Object
9 10 11 12 |
# File 'lib/rabl-rails/renderers/xml.rb', line 9 def format_output(hash, = {}) = { root: [:root_name] }.merge!(RablRails.configuration.) hash.to_xml() end |
#resolve_cache_key(key, data) ⇒ Object
14 15 16 |
# File 'lib/rabl-rails/renderers/xml.rb', line 14 def resolve_cache_key(key, data) "#{super}.xml" end |