mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 23:59:40 +02:00
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.
This commit is contained in:
parent
5a5f13b46b
commit
be21d2b4fd
7 changed files with 50 additions and 24 deletions
10
app/controllers/accounts/logos_controller.rb
Normal file
10
app/controllers/accounts/logos_controller.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue