Fix rubocop issues, introduce usage of frozen literal to improve performance
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
# 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)
|
||||
account: render(file: 'api/v1/accounts/show', locals: { account: current_user.account }, formats: :json),
|
||||
}
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user