home_helper.rb 251 B

1234567891011
  1. # frozen_string_literal: true
  2. module HomeHelper
  3. def default_props
  4. {
  5. token: @token,
  6. account: render(file: 'api/v1/accounts/show', locals: { account: current_user.account }, formats: :json),
  7. locale: I18n.locale,
  8. }
  9. end
  10. end