-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from spree-contrib/release-0-2
Release 0.2.0
- Loading branch information
Showing
3 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Changelog | ||
|
||
## 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters