Sha256: fa93a0a8f1004c63e10e6dbd5a0eaad2ffaf5c68593df508ff8340dd686cc8b5
Contents?: true
Size: 1.86 KB
Versions: 2
Compression:
Stored size: 1.86 KB
Contents
# Changelog ## 0.2.2 * The parent serializer for `Spree::BaseSerializer` is now configurable. In some instances, you may have an `ApplicationSerializer`. To make the `Spree::BaseSerializer` use an `ApplicationSerializer` instead of the `ActiveModel::Serializer`: ```ruby # config/initializers/spree_api_v2.rb; or # config/initializers/solidus_api_v2.rb SpreeApiV2.setup do |config| config.parent_serializer = ApplicationSerializer end ## 0.2.1 * Fixes a bug where the user serializer wasn't extending from the `Spree::BaseSerializer` this is now fixed. [Ben A. Morgan](https://github.com/BenMorganIO) ## 0.2.0 * Calling `super` inside fo `#index` and `#show` actions is now deprecated. Since these are methods that are meant to be called, they have been renamed to `#render_collection` and `#render_instance`. [Ben A. Morgan](https://github.com/BenMorganIO) * Added support for [Solidus](https://github.com/solidusio/solidus). [Ben A. Morgan](https://github.com/BenMorganIO) * In some instances, you would like to use the helper methods provided by the Spree V2 API, but unable to extend from the controller. The render methods have been moved to a concern. If you would like to include them in a controller without having to extend from the `Spree::Api::V2::BaseController`, then: ```ruby module Api class MyController < Api::BaseController # include the concern include Spree::Api::V2::Renderable # example usage of rendering all products without calling # +render_instance+ but providing page detail information that conforms # to the JSON API spec. def index render json: @products, meta: { page: page_details(@products) } end end end ``` [Ben A. Morgan](https://github.com/BenMorganIO) ## 0.1.0 Initial Release
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
spree_api_v2-0.2.2 | CHANGELOG.md |
solidus_api_v2-0.2.2 | CHANGELOG.md |