mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4.6 KiB
4.6 KiB
3.2.0
- Add support for Ruby 3.3/3.4 and Rails 7.2/8.0/8.1. (no changes required)
- Drop support for Rails < 7 and Ruby < 2.7.
3.1.1
- Add support for Rails 7.1. (no changes required.)
3.1.0
- Add config
responders.redirect_statusto allow overriding the redirect code/status used in redirects. The default is302 Found, which matches Rails, but it allows to change responders to redirect with303 See Otherfor example, to make it more compatible with how Hotwire/Turbo expects redirects to work. - Add config
responders.error_statusto allow overriding the status code used to respond toHTMLorJSrequests that have errors on the resource. The default is200 OK, but it allows to change the response to be422 Unprocessable Entityin such cases for example, which makes it more consistent with other statuses more commonly used in APIs (like JSON/XML), and works by default with Turbo/Hotwire which expects a 422 on form error HTML responses. Note that changing this may break your application if you're relying on the previous 2xx status to handle error cases. - Add support for Ruby 3.0, 3.1, and 3.2, drop support for Ruby < 2.5.
- Add support for Rails 6.1 and 7.0, drop support for Rails < 5.2.
- Move CI to GitHub Actions.
3.0.1
- Add support to Ruby 2.7
3.0.0
- Remove support for Rails 4.2
- Remove support for Ruby < 2.4
2.4.1
- Add support for Rails 6 beta
2.4.0
-
respond_withnow accepts a new kwarg called:renderwhich goes straight to therendercall after an unsuccessful post request. Useful if for example you need to render a template which is outside of controller's path eg:respond_with resource, render: { template: 'path/to/template' }
2.3.0
verify_request_format!is aliased toverify_requested_format!now.- Implementing the
interpolation_optionsmethod on your controller is deprecated in favor of naming itflash_interpolation_optionsinstead.
2.2.0
- Added the
verify_request_format!method, that can be used as abefore_actioncallback to prevent your actions from being invoked when the controller does not respond to the request mime type, preventing the execution of complex queries or creating/deleting records from your app.
2.1.2
- Fix rendering when using
ActionController::API. (by @eLod) - Added API controller template for the controller generator. (by @vestimir)
2.1.1
- Added support for Rails 5.
2.1.0
- No longer automatically set the responders generator as many projects may use this gem as a dependency. When upgrading, users will need to add
config.app_generators.scaffold_controller :responders_controllerto their application. Theresponders:installgenerator has been updated to automatically insert it in new applications
2.0.1
- Require
rails/railtieexplicitly before using it - Require
action_controllerexplicitly before using it - Remove unnecessary and limiting
resourceful?check that required models to implementto_#{format}(such checks are responsibility of the rendering layer)
2.0.0
- Import
respond_withand class-levelrespond_tofrom Rails - Support only Rails ~> 4.2
Responders::LocationResponderis now included by the default responder (and therefore deprecated)
1.1.0
- Support Rails 4.1.
- Allow callable objects as the location.
1.0.0
- Improve controller generator to work closer to the Rails 4 one, and make it compatible with strong parameters.
- Drop support for Rails 3.1 and Ruby 1.8, keep support for Rails 3.2
- Support for Rails 4.0 onward
- Fix flash message on destroy failure. Fixes #61
0.9.3
- Fix url generation for namespaced models
0.9.2
- Properly inflect custom responders names
0.9.1
- Fix bug with namespace lookup
0.9.0
- Disable namespace lookup by default
0.8
- Allow embedded HTML in flash messages
0.7
- Support Rails 3.1 onward
- Support namespaced engines
0.6
- Allow engine detection in generators
- HTTP Cache is no longer triggered for collections
:jsnow sets theflash.nowby default, instead offlash- Renamed
responders_installgenerator toresponders:install - Added
CollectionResponderwhich allows you to always redirect to the collection path (index action) after POST/PUT/DELETE
0.5
- Added Railtie and better Rails 3 support
- Added
:flash_nowas option
0.4
- Added
Responders::FlashResponder.flash_keysand default to[ :notice, :alert ] - Added support to `respond_with(@resource, :notice => "Yes!", :alert => "No!")``
0.1
- Added
FlashResponder - Added
HttpCacheResponder - Added responders generators