Sha256: 39b738902fc2add32301cddc69946e53a169ada1bb0bbb52897e8fcdf64a7ebf
Contents?: true
Size: 824 Bytes
Versions: 1
Compression:
Stored size: 824 Bytes
Contents
# Upgrading Grape::Rabl ## Upgrading to >= 0.5 ### Fallback rendering when no RABL template is defined Prior to v0.5.0, Grape::Rabl would always render content as JSON when no Rabl template was specified for a request. Beginning in v0.5.0 Grape::Rabl will now fallback to using the default response format [as determined by Grape](https://github.com/ruby-grape/grape#api-formats) ```ruby class SampleApi < Grape::API format :xml formatter :xml, Grape::Formatter::Rabl get 'list' do %w[thing] end end ``` #### Former behavior ```ruby response.body # => ["thing"] ``` #### Current behavior ```ruby response.body # => <?xml version="1.0" encoding="UTF-8"?>\n<strings type="array">\n <string>thing</string>\n</strings> ``` See [#34](https://github.com/ruby-grape/grape-rabl/pull/34) for more information.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grape-rabl-0.5.0 | UPGRADING.md |