Replace OEmbed and initial state Rabl templates with serializers (#4110)
* Replace OEmbed Rabl template with serializer * Replace initial state rabl with serializer
This commit is contained in:
parent
102466ac58
commit
864e3f8d9c
9 changed files with 121 additions and 94 deletions
5
app/presenters/initial_state_presenter.rb
Normal file
5
app/presenters/initial_state_presenter.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class InitialStatePresenter < ActiveModelSerializers::Model
|
||||
attributes :settings, :token, :current_account, :admin
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue