lib/generators/templates/versioncake.rb in versioncake-3.0.0 vs lib/generators/templates/versioncake.rb in versioncake-3.1.0
- old
+ new
@@ -35,6 +35,15 @@
# Set the version key that clients will send example: `API-VERSION: 5`, api_version=2
# config.version_key = 'api_version'
# Enable Rails versioned filename mapping
# config.rails_view_versioning = true
+
+ # Response Strategies
+ # Define how (if at all) to include the version in the response. Similar to how to retrieve the
+ # version, you can set where it will be in the response. For example, the `http_header_strategy`
+ # will include it the response header under the key configured in `config.version_key`.
+ #
+ # Defaults to none
+ #
+ # config.response_strategy = [] # [:http_content_type, :http_header]
end