about summary refs log tree commit diff
path: root/app/helpers/home_helper.rb
blob: 6f87c7b72d7e6fc7f47ceb0f811f27c2ac810d61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

module HomeHelper
  def default_props
    {
      token: @token,
      account: render(file: 'api/v1/accounts/show', locals: { account: current_user.account }, formats: :json),
      locale: I18n.locale,
    }
  end
end