1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-23 07:09:39 +02:00
Maybe/app/controllers/accounts/logos_controller.rb
Josh Brown be21d2b4fd
Refactor placeholder logo into common controller (#673)
This can be updated to redirect/pull from third party sources in future,
with the option of always falling back to the placeholder if there are
any failures.
2024-04-25 10:32:45 -04:00

10 lines
222 B
Ruby

class Accounts::LogosController < ApplicationController
def show
@account = Current.family.accounts.find(params[:account_id])
render_placeholder
end
def render_placeholder
render formats: :svg
end
end