mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-16 05:04:02 -05:00
1955aa9f7d
* Bump active_model_serializers from 0.10.9 to 0.10.10 Bumps [active_model_serializers](https://github.com/rails-api/active_model_serializers) from 0.10.9 to 0.10.10. - [Release notes](https://github.com/rails-api/active_model_serializers/releases) - [Changelog](https://github.com/rails-api/active_model_serializers/blob/v0.10.10/CHANGELOG.md) - [Commits](https://github.com/rails-api/active_model_serializers/compare/v0.10.9...v0.10.10) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Add root option to render method
11 lines
276 B
Ruby
11 lines
276 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ManifestsController < ApplicationController
|
|
skip_before_action :store_current_location
|
|
|
|
def show
|
|
expires_in 3.minutes, public: true
|
|
render json: InstancePresenter.new, serializer: ManifestSerializer, root: 'instance'
|
|
end
|
|
end
|